Skip to content

Commit

Permalink
Merge pull request #572 from mheon/adjust_defaults
Browse files Browse the repository at this point in the history
Use Private as default for rootless when we want CNI
  • Loading branch information
openshift-merge-robot authored May 21, 2021
2 parents bd27b0d + 834881a commit d11e7ed
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,6 @@ func probeConmon(conmonBinary string) error {

// NetNS returns the default network namespace
func (c *Config) NetNS() string {
if c.Containers.NetNS == "private" && unshare.IsRootless() {
return "slirp4netns"
}
return c.Containers.NetNS
}

Expand Down

0 comments on commit d11e7ed

Please sign in to comment.