summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-17 05:52:51 -0400
committerGitHub <noreply@github.com>2021-04-17 05:52:51 -0400
commit676c33f07950b29b657370df5e767452692be648 (patch)
tree4a3ba7067472b1c3a9f1756f54a18816f84dd603 /cmd
parent35b62ef19f307fb365eb7a8734e456160f7b22a8 (diff)
parentd7292dbf2731701c122656400ce5007693efe3c8 (diff)
downloadpodman-676c33f07950b29b657370df5e767452692be648.tar.gz
podman-676c33f07950b29b657370df5e767452692be648.tar.bz2
podman-676c33f07950b29b657370df5e767452692be648.zip
Merge pull request #10043 from Luap99/play-kube-ip
add --ip to podman play kube
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/play/kube.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go
index ddba5dc0f..30d6d86f0 100644
--- a/cmd/podman/play/kube.go
+++ b/cmd/podman/play/kube.go
@@ -65,6 +65,10 @@ func init() {
flags.StringVar(&kubeOptions.Network, networkFlagName, "", "Connect pod to CNI network(s)")
_ = kubeCmd.RegisterFlagCompletionFunc(networkFlagName, common.AutocompleteNetworkFlag)
+ staticIPFlagName := "ip"
+ flags.IPSliceVar(&kubeOptions.StaticIPs, staticIPFlagName, nil, "Static IP addresses to assign to the pods")
+ _ = kubeCmd.RegisterFlagCompletionFunc(staticIPFlagName, completion.AutocompleteNone)
+
logDriverFlagName := "log-driver"
flags.StringVar(&kubeOptions.LogDriver, logDriverFlagName, "", "Logging driver for the container")
_ = kubeCmd.RegisterFlagCompletionFunc(logDriverFlagName, common.AutocompleteLogDriver)