summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorChristian Felder <c.felder@fz-juelich.de>2020-03-26 15:12:22 +0100
committerChristian Felder <c.felder@fz-juelich.de>2020-03-27 10:00:01 +0100
commit91dbdff77e159fb5377cd57733a05c72cbd94c97 (patch)
tree2774d13e8d045e4ae8a4ec5f3c9829f8d0d391d4 /cmd
parent90d82eb0349850521fcc53a4ddafa08e0785ebf0 (diff)
downloadpodman-91dbdff77e159fb5377cd57733a05c72cbd94c97.tar.gz
podman-91dbdff77e159fb5377cd57733a05c72cbd94c97.tar.bz2
podman-91dbdff77e159fb5377cd57733a05c72cbd94c97.zip
Add support for specifying CNI networks in podman play kube
Fixes: #5609 Signed-off-by: Christian Felder <c.felder@fz-juelich.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/cliconfig/config.go1
-rw-r--r--cmd/podman/play_kube.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/cliconfig/config.go b/cmd/podman/cliconfig/config.go
index 3428746a9..f96140fd2 100644
--- a/cmd/podman/cliconfig/config.go
+++ b/cmd/podman/cliconfig/config.go
@@ -318,6 +318,7 @@ type KubePlayValues struct {
Authfile string
CertDir string
Creds string
+ Network string
Quiet bool
SignaturePolicy string
TlsVerify bool
diff --git a/cmd/podman/play_kube.go b/cmd/podman/play_kube.go
index 2028d2ef4..a5669c595 100644
--- a/cmd/podman/play_kube.go
+++ b/cmd/podman/play_kube.go
@@ -51,6 +51,7 @@ func init() {
flags.StringVar(&playKubeCommand.SeccompProfileRoot, "seccomp-profile-root", defaultSeccompRoot, "Directory path for seccomp profiles")
markFlagHidden(flags, "signature-policy")
}
+ flags.StringVar(&playKubeCommand.Network, "network", "", "Connect pod to CNI network(s)")
}
func playKubeCmd(c *cliconfig.KubePlayValues) error {