-
Notifications
You must be signed in to change notification settings - Fork 794
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
buildah/push/manifest-push: add support for --force-compression
to prevent reusing other blobs
#4973
buildah/push/manifest-push: add support for --force-compression
to prevent reusing other blobs
#4973
Conversation
@mtrmac FYI, although I still need to update docs but other than that most of the code and tests are done. |
ab3d461
to
4aec38a
Compare
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: flouthoc, mtrmac 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 |
docs/buildah-manifest-push.1.md
Outdated
@@ -52,6 +62,10 @@ value can be entered. The password is entered without echo. | |||
|
|||
After copying the image, write the digest of the resulting image to the file. | |||
|
|||
**--force-compression** | |||
|
|||
Use the specified compression algorithm if the destination contains a differently-compressed variant already. |
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 think?
Use the specified compression algorithm if the destination contains a differently-compressed variant already. | |
Use the specified compression algorithm even if the destination contains a differently-compressed variant already. |
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.
Fixed docs.
docs/buildah-push.1.md
Outdated
@@ -70,6 +70,10 @@ Layer(s) to encrypt: 0-indexed layer indices with support for negative indexing | |||
|
|||
The [protocol:keyfile] specifies the encryption protocol, which can be JWE (RFC7516), PGP (RFC4880), and PKCS7 (RFC2315) and the key material required for image encryption. For instance, jwe:/path/to/key.pem or pgp:[email protected] or pkcs7:/path/to/x509-file. | |||
|
|||
**--force-compression** | |||
|
|||
Use the specified compression algorithm if the destination contains a differently-compressed variant already. |
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.
ditto prior
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.
Fixed docs.
/lgtm |
Signed-off-by: Aditya R <[email protected]>
Adds support for `--force-compression` which allows end-users to force push blobs with the selected compresison in `--compression` option, in order to make sure that `blobs` of other compression on registry are not reused. Is equivalent to: `force-compression` here: https://docs.docker.com/build/exporters/#compression Closes: containers#4613 Also Implements: `--compression-format` and `--compression-level` for `manifest push` just like `podman`'s `manifest push` Signed-off-by: Aditya R <[email protected]>
4aec38a
to
d68d9a2
Compare
@rhatdan I think this will need |
LGTM |
/lgtm |
Adds support for
--force-compression
which allows end-users to forcepush blobs with the selected compresison in
--compression
option, inorder to make sure that
blobs
of other compression on registry are notreused.
Is equivalent to:
force-compression
here: https://docs.docker.com/build/exporters/#compressionCloses: #4613
Also Implements:
--compression-format
and--compression-level
formanifest push
just likepodman
'smanifest push