builder: remove unused netnsRoot field in builder-next
| ... | ... |
@@ -102,7 +102,7 @@ func newController(rt http.RoundTripper, opt Opt) (*control.Controller, error) {
|
| 102 | 102 |
return nil, err |
| 103 | 103 |
} |
| 104 | 104 |
|
| 105 |
- exec, err := newExecutor(root, opt.NetnsRoot, opt.NetworkController) |
|
| 105 |
+ exec, err := newExecutor(root, opt.NetworkController) |
|
| 106 | 106 |
if err != nil {
|
| 107 | 107 |
return nil, err |
| 108 | 108 |
} |
| ... | ... |
@@ -19,9 +19,9 @@ import ( |
| 19 | 19 |
|
| 20 | 20 |
const networkName = "bridge" |
| 21 | 21 |
|
| 22 |
-func newExecutor(root, netnsRoot string, net libnetwork.NetworkController) (executor.Executor, error) {
|
|
| 22 |
+func newExecutor(root string, net libnetwork.NetworkController) (executor.Executor, error) {
|
|
| 23 | 23 |
networkProviders := map[pb.NetMode]network.Provider{
|
| 24 |
- pb.NetMode_UNSET: &bridgeProvider{NetworkController: net, netnsRoot: netnsRoot},
|
|
| 24 |
+ pb.NetMode_UNSET: &bridgeProvider{NetworkController: net},
|
|
| 25 | 25 |
pb.NetMode_HOST: network.NewHostProvider(), |
| 26 | 26 |
pb.NetMode_NONE: network.NewNoneProvider(), |
| 27 | 27 |
} |
| ... | ... |
@@ -33,7 +33,6 @@ func newExecutor(root, netnsRoot string, net libnetwork.NetworkController) (exec |
| 33 | 33 |
|
| 34 | 34 |
type bridgeProvider struct {
|
| 35 | 35 |
libnetwork.NetworkController |
| 36 |
- netnsRoot string |
|
| 37 | 36 |
} |
| 38 | 37 |
|
| 39 | 38 |
func (p *bridgeProvider) New() (network.Namespace, error) {
|
| ... | ... |
@@ -10,7 +10,7 @@ import ( |
| 10 | 10 |
"github.com/moby/buildkit/executor" |
| 11 | 11 |
) |
| 12 | 12 |
|
| 13 |
-func newExecutor(_, _ string, _ libnetwork.NetworkController) (executor.Executor, error) {
|
|
| 13 |
+func newExecutor(_ string, _ libnetwork.NetworkController) (executor.Executor, error) {
|
|
| 14 | 14 |
return &winExecutor{}, nil
|
| 15 | 15 |
} |
| 16 | 16 |
|
| ... | ... |
@@ -287,7 +287,6 @@ func newRouterOptions(config *config.Config, daemon *daemon.Daemon) (routerOptio |
| 287 | 287 |
bk, err := buildkit.New(buildkit.Opt{
|
| 288 | 288 |
SessionManager: sm, |
| 289 | 289 |
Root: filepath.Join(config.Root, "buildkit"), |
| 290 |
- NetnsRoot: filepath.Join(config.ExecRoot, "netns"), |
|
| 291 | 290 |
Dist: daemon.DistributionServices(), |
| 292 | 291 |
NetworkController: daemon.NetworkController(), |
| 293 | 292 |
}) |