diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-11-23 09:50:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 09:50:26 -0500 |
commit | ee612806655d0d0a0a3d2a782a000ea5c6b08f33 (patch) | |
tree | 6a5ef0988a7642d83c0e7d095f89f552cccc8551 /cmd/podman/play/kube.go | |
parent | 9e07cb17a92dd24df8053193e1e047f211a72a54 (diff) | |
parent | 21629b0501c62a991eef536765b7320bc2d45763 (diff) | |
download | podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.tar.gz podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.tar.bz2 podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.zip |
Merge pull request #12361 from rhatdan/remote
podman-remote does not support signature-policy
Diffstat (limited to 'cmd/podman/play/kube.go')
-rw-r--r-- | cmd/podman/play/kube.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go index 581b29113..11b5d7d34 100644 --- a/cmd/podman/play/kube.go +++ b/cmd/podman/play/kube.go @@ -108,8 +108,6 @@ func init() { flags.StringVar(&kubeOptions.CertDir, certDirFlagName, "", "`Pathname` of a directory containing TLS certificates and keys") _ = kubeCmd.RegisterFlagCompletionFunc(certDirFlagName, completion.AutocompleteDefault) - flags.StringVar(&kubeOptions.SignaturePolicy, "signature-policy", "", "`Pathname` of signature policy file (not usually used)") - seccompProfileRootFlagName := "seccomp-profile-root" flags.StringVar(&kubeOptions.SeccompProfileRoot, seccompProfileRootFlagName, defaultSeccompRoot, "Directory path for seccomp profiles") _ = kubeCmd.RegisterFlagCompletionFunc(seccompProfileRootFlagName, completion.AutocompleteDefault) @@ -121,7 +119,12 @@ func init() { buildFlagName := "build" flags.BoolVar(&kubeOptions.Build, buildFlagName, false, "Build all images in a YAML (given Containerfiles exist)") } - _ = flags.MarkHidden("signature-policy") + + if !registry.IsRemote() { + flags.StringVar(&kubeOptions.SignaturePolicy, "signature-policy", "", "`Pathname` of signature policy file (not usually used)") + + _ = flags.MarkHidden("signature-policy") + } } func kube(cmd *cobra.Command, args []string) error { |