-
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
cmd, push: use the configured compression format #12486
cmd, push: use the configured compression format #12486
Conversation
Signed-off-by: Giuseppe Scrivano <[email protected]>
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, vrothberg 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 |
@rhatdan PTAL |
cmd/podman/images/push.go
Outdated
@@ -109,7 +109,7 @@ 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") | |||
flags.StringVar(&pushOptions.CompressionFormat, compressionFormat, containerConfig.Engine.CompressionFormat, "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.
You should not set this hear, it needs to be set on the server side not the client side.
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 be handled here:
https://github.com/containers/podman/blob/main/pkg/domain/infra/abi/images.go#L309-L315
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 thought we wanted from the client side (so that it reflects in the podman push --help
output).
I've pushed a new version where it is set in pkg/domain/infra/abi/images.go
[NO NEW TESTS NEEDED] I am just changing the default value Signed-off-by: Giuseppe Scrivano <[email protected]>
17d813c
to
bd9f881
Compare
/lgtm |
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, restarted the flake
/hold cancel |
follow up for #12450
Signed-off-by: Giuseppe Scrivano [email protected]