aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/play/kube.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-10 13:28:16 -0400
committerGitHub <noreply@github.com>2022-05-10 13:28:16 -0400
commit76dc9ef32dd8645e07365e1c0eb483219ab7e614 (patch)
treef5c93b3cc9ce18bb91c1cdc90e223973ba4f5d7c /cmd/podman/play/kube.go
parent18713f589c1ed9144d873f2656f2067ebf6f3ba2 (diff)
parent0774a4ce131754b282443e85cc77c308123ef9c0 (diff)
downloadpodman-76dc9ef32dd8645e07365e1c0eb483219ab7e614.tar.gz
podman-76dc9ef32dd8645e07365e1c0eb483219ab7e614.tar.bz2
podman-76dc9ef32dd8645e07365e1c0eb483219ab7e614.zip
Merge pull request #14140 from giuseppe/play-kube-userns
kube: add support for --userns=[auto|host]
Diffstat (limited to 'cmd/podman/play/kube.go')
-rw-r--r--cmd/podman/play/kube.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go
index 3be7396ce..5fe059139 100644
--- a/cmd/podman/play/kube.go
+++ b/cmd/podman/play/kube.go
@@ -98,6 +98,12 @@ func init() {
)
_ = kubeCmd.RegisterFlagCompletionFunc(logOptFlagName, common.AutocompleteLogOpt)
+ usernsFlagName := "userns"
+ flags.StringVar(&kubeOptions.Userns, usernsFlagName, os.Getenv("PODMAN_USERNS"),
+ "User namespace to use",
+ )
+ _ = kubeCmd.RegisterFlagCompletionFunc(usernsFlagName, common.AutocompleteUserNamespace)
+
flags.BoolVar(&kubeOptions.NoHosts, "no-hosts", false, "Do not create /etc/hosts within the pod's containers, instead use the version from the image")
flags.BoolVarP(&kubeOptions.Quiet, "quiet", "q", false, "Suppress output information when pulling images")
flags.BoolVar(&kubeOptions.TLSVerifyCLI, "tls-verify", true, "Require HTTPS and verify certificates when contacting registries")