-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman, push: expose --compression-format #12450
podman, push: expose --compression-format #12450
Conversation
cmd/podman/images/push.go
Outdated
@@ -108,6 +108,8 @@ func pushFlags(cmd *cobra.Command) { | |||
|
|||
flags.BoolVar(&pushOptions.TLSVerifyCLI, "tls-verify", true, "Require HTTPS and verify certificates when contacting registries") | |||
|
|||
flags.StringVar(&pushOptions.CompressionFormat, "compression-format", "", "compression format to use") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, remove line between this and previous line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we set default, should it be added to containers.conf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the default is gzip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I think this should be configurable from containers.conf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've opened a PR here: containers/common#845
@@ -71,6 +71,10 @@ Please refer to containers-certs.d(5) for details. (This option is not available | |||
Compress tarball image layers when pushing to a directory using the 'dir' transport. (default is same compression type, compressed or uncompressed, as source) | |||
Note: This flag can only be set when using the **dir** transport | |||
|
|||
#### **--compression-format** *COMPRESSION* | |||
|
|||
Specifies the compression format to use. Supported values are: `gzip`, `zstd` and `zstd:chunked`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the default?
support overriding the compression format at push time. Signed-off-by: Giuseppe Scrivano <[email protected]>
2e36622
to
6673ff7
Compare
LGTM restarted flakes. Just a discussion point should this also include |
do we need to add |
I think yes |
I would leave that to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@vrothberg Fair point. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
support overriding the compression format at push time.
Signed-off-by: Giuseppe Scrivano [email protected]