diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-04 01:51:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 01:51:09 -0800 |
commit | 05e04b4a6436478e78ff93d33e32db92932bba10 (patch) | |
tree | fe3c4e7291cb53e17acca0d6b9bebcdefaf9b2d4 /cmd/podman/pod_create.go | |
parent | 54926d1b034efc6d8edad30dda6e85b8157145ed (diff) | |
parent | b438cb2cce33ac727f3b0c24154055e287fead4d (diff) | |
download | podman-05e04b4a6436478e78ff93d33e32db92932bba10.tar.gz podman-05e04b4a6436478e78ff93d33e32db92932bba10.tar.bz2 podman-05e04b4a6436478e78ff93d33e32db92932bba10.zip |
Merge pull request #5073 from baude/sepnetoptions
seperate container create network options
Diffstat (limited to 'cmd/podman/pod_create.go')
-rw-r--r-- | cmd/podman/pod_create.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd/podman/pod_create.go b/cmd/podman/pod_create.go index ad3c00aa8..cee6476ea 100644 --- a/cmd/podman/pod_create.go +++ b/cmd/podman/pod_create.go @@ -44,6 +44,18 @@ func init() { podCreateCommand.SetUsageTemplate(UsageTemplate()) flags := podCreateCommand.Flags() flags.SetInterspersed(false) + // When we are ready to add the network options to the create commmand, we need to uncomment + // the following + + //flags.AddFlagSet(getNetFlags()) + + // Once this is uncommented, then the publish option below needs to be removed because it + // conflicts with the publish in getNetFlags. Upon removal, the c.Publish will not work + // anymore and needs to be cleaned up. I suggest starting with removing the Publish attribute + // from PodCreateValues structure. Running make should then expose all areas that need to be + // addressed. To get the value of publish (and other flags in getNetFlags, use the syntax: + // c.<type>("<flag_name") or c.Bool("publish") + // Remember to do this safely by checking len, etc. flags.StringVar(&podCreateCommand.CgroupParent, "cgroup-parent", "", "Set parent cgroup for the pod") flags.BoolVar(&podCreateCommand.Infra, "infra", true, "Create an infra container associated with the pod to share namespaces with") |