diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-05-12 13:35:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 13:35:56 -0400 |
commit | 81fc9f1deae7e92a298f3aee3a87cc4362123ea9 (patch) | |
tree | c54c4383181dd499f9e22334ca1ece71a20dabff /cmd | |
parent | 45e9f1ff097adca65a5bb2a7367883508900667d (diff) | |
parent | 840c120c21124de921a7f57435cf0d0497103736 (diff) | |
download | podman-81fc9f1deae7e92a298f3aee3a87cc4362123ea9.tar.gz podman-81fc9f1deae7e92a298f3aee3a87cc4362123ea9.tar.bz2 podman-81fc9f1deae7e92a298f3aee3a87cc4362123ea9.zip |
Merge pull request #14159 from vrothberg/service-container
play kube: service container
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/play/kube.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go index 5fe059139..f5b121009 100644 --- a/cmd/podman/play/kube.go +++ b/cmd/podman/play/kube.go @@ -139,6 +139,15 @@ func init() { flags.StringVar(&kubeOptions.ContextDir, contextDirFlagName, "", "Path to top level of context directory") _ = kubeCmd.RegisterFlagCompletionFunc(contextDirFlagName, completion.AutocompleteDefault) + // NOTE: The service-container flag is marked as hidden as it + // is purely designed for running play-kube in systemd units. + // It is not something users should need to know or care about. + // + // Having a flag rather than an env variable is cleaner. + serviceFlagName := "service-container" + flags.BoolVar(&kubeOptions.ServiceContainer, serviceFlagName, false, "Starts a service container before all pods") + _ = flags.MarkHidden("service-container") + flags.StringVar(&kubeOptions.SignaturePolicy, "signature-policy", "", "`Pathname` of signature policy file (not usually used)") _ = flags.MarkHidden("signature-policy") |