diff options
author | Qi Wang <qiwan@redhat.com> | 2020-09-13 15:40:41 -0400 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2020-09-15 16:09:33 -0400 |
commit | 2fcd1d7b4dca2619277607da7c8d22e9ec7620a2 (patch) | |
tree | 27f44268555f587c724f9674c5ec742dbf31b089 /cmd/podman/images | |
parent | 0be5836e49da38b156951639b7e19eaec6a6e593 (diff) | |
download | podman-2fcd1d7b4dca2619277607da7c8d22e9ec7620a2.tar.gz podman-2fcd1d7b4dca2619277607da7c8d22e9ec7620a2.tar.bz2 podman-2fcd1d7b4dca2619277607da7c8d22e9ec7620a2.zip |
Supports import&run--signature-policy
Enables podman create, pull, run, import to use --signature-policy option. Set it as hidden flag to be consistent with other commands.
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'cmd/podman/images')
-rw-r--r-- | cmd/podman/images/import.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/images/import.go b/cmd/podman/images/import.go index e605ddfc6..1c234e743 100644 --- a/cmd/podman/images/import.go +++ b/cmd/podman/images/import.go @@ -63,6 +63,8 @@ func importFlags(flags *pflag.FlagSet) { flags.StringArrayVarP(&importOpts.Changes, "change", "c", []string{}, "Apply the following possible instructions to the created image (default []): CMD | ENTRYPOINT | ENV | EXPOSE | LABEL | STOPSIGNAL | USER | VOLUME | WORKDIR") flags.StringVarP(&importOpts.Message, "message", "m", "", "Set commit message for imported image") flags.BoolVarP(&importOpts.Quiet, "quiet", "q", false, "Suppress output") + flags.StringVar(&importOpts.SignaturePolicy, "signature-policy", "", "Path to a signature-policy file") + _ = flags.MarkHidden("signature-policy") } func importCon(cmd *cobra.Command, args []string) error { |