summaryrefslogtreecommitdiff
path: root/cmd/podman/images
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-12-01 21:01:15 +0100
committerGitHub <noreply@github.com>2021-12-01 21:01:15 +0100
commit5d91edc78d5a3a96293cbb22dae85ab8c055fcc6 (patch)
tree003258ab953a4e52551f89cb16a306453d28439a /cmd/podman/images
parentecc663097a5791fea01e730308528d67d534e44a (diff)
parent6673ff78d3c5bba1078d9862fccadf0b7fe556fa (diff)
downloadpodman-5d91edc78d5a3a96293cbb22dae85ab8c055fcc6.tar.gz
podman-5d91edc78d5a3a96293cbb22dae85ab8c055fcc6.tar.bz2
podman-5d91edc78d5a3a96293cbb22dae85ab8c055fcc6.zip
Merge pull request #12450 from giuseppe/compression-format
podman, push: expose --compression-format
Diffstat (limited to 'cmd/podman/images')
-rw-r--r--cmd/podman/images/push.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/images/push.go b/cmd/podman/images/push.go
index cf787a71f..37ace3ffe 100644
--- a/cmd/podman/images/push.go
+++ b/cmd/podman/images/push.go
@@ -108,6 +108,10 @@ func pushFlags(cmd *cobra.Command) {
flags.BoolVar(&pushOptions.TLSVerifyCLI, "tls-verify", true, "Require HTTPS and verify certificates when contacting registries")
+ compressionFormat := "compression-format"
+ flags.StringVar(&pushOptions.CompressionFormat, compressionFormat, "", "compression format to use")
+ _ = cmd.RegisterFlagCompletionFunc(compressionFormat, common.AutocompleteCompressionFormat)
+
if registry.IsRemote() {
_ = flags.MarkHidden("cert-dir")
_ = flags.MarkHidden("compress")