diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-12-13 15:56:20 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2021-12-14 15:23:40 +0100 |
commit | 3e9af2029f1f92fbc069f81ba9ca90c090617e9c (patch) | |
tree | 2722625080848dd49e91ac60c93b10f5e5cda565 /cmd/podman | |
parent | 535818414c2a6bdcf6434e36c33775ea1a43f1cf (diff) | |
download | podman-3e9af2029f1f92fbc069f81ba9ca90c090617e9c.tar.gz podman-3e9af2029f1f92fbc069f81ba9ca90c090617e9c.tar.bz2 podman-3e9af2029f1f92fbc069f81ba9ca90c090617e9c.zip |
play kube add support for multiple networks
Allow the same --network options for play kube as for podman run/create.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/play/kube.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go index 11b5d7d34..ae4066a6f 100644 --- a/cmd/podman/play/kube.go +++ b/cmd/podman/play/kube.go @@ -69,7 +69,7 @@ func init() { _ = kubeCmd.RegisterFlagCompletionFunc(staticMACFlagName, completion.AutocompleteNone) networkFlagName := "network" - flags.StringVar(&kubeOptions.Network, networkFlagName, "", "Connect pod to CNI network(s)") + flags.StringArrayVar(&kubeOptions.Networks, networkFlagName, nil, "Connect pod to network(s) or network mode") _ = kubeCmd.RegisterFlagCompletionFunc(networkFlagName, common.AutocompleteNetworkFlag) staticIPFlagName := "ip" |