diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-02 14:57:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 14:57:37 -0500 |
commit | aab8a934f5bd9bc58959c49f334d3ba57a0f5135 (patch) | |
tree | 0870e9b21e64d4347ea8024ccc8dba0ff3a263e0 /pkg | |
parent | 628b0d79b523953cc6aa9b48bd91d04d0843353b (diff) | |
parent | 931ea939ac85bc0e64d12dc34ac920e9e91c4277 (diff) | |
download | podman-aab8a934f5bd9bc58959c49f334d3ba57a0f5135.tar.gz podman-aab8a934f5bd9bc58959c49f334d3ba57a0f5135.tar.bz2 podman-aab8a934f5bd9bc58959c49f334d3ba57a0f5135.zip |
Merge pull request #9185 from mheon/pod_no_network
Allow pods to use --net=none
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/specgen/generate/pod_create.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/specgen/generate/pod_create.go b/pkg/specgen/generate/pod_create.go index 43caf0fe9..645bf7a47 100644 --- a/pkg/specgen/generate/pod_create.go +++ b/pkg/specgen/generate/pod_create.go @@ -102,6 +102,9 @@ func createPodOptions(p *specgen.PodSpecGenerator, rt *libpod.Runtime) ([]libpod case specgen.Slirp: logrus.Debugf("Pod will use slirp4netns") options = append(options, libpod.WithPodSlirp4netns(p.NetworkOptions)) + case specgen.NoNetwork: + logrus.Debugf("Pod will not use networking") + options = append(options, libpod.WithPodNoNetwork()) default: return nil, errors.Errorf("pods presently do not support network mode %s", p.NetNS.NSMode) } |