push, manifest-push: --force-compression must be true with --compression-format

Value of `--force-compression` should be already `true` is
`--compression-format` is selected otherwise let users decide.

Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
Aditya R
2023-08-24 13:34:25 +05:30
parent 82bd56be74
commit 0938ee1899
11 changed files with 49 additions and 18 deletions

View File

@ -0,0 +1,8 @@
####> This option file is used in:
####> podman manifest push, push
####> If file is edited, make sure the changes
####> are applicable to all of those.
#### **--force-compression**
If set, push uses the specified compression algorithm even if the destination contains a differently-compressed variant already.
Defaults to `true` if `--compression-format` is explicitly specified on the command-line, `false` otherwise.

View File

@ -42,11 +42,7 @@ the list or index itself. (Default true)
@@option digestfile
#### **--force-compression**
Use the specified compression algorithm even if the destination contains a differently-compressed variant already.
Usually use for this flag arises when image is prior compressed and pushed using `--compression-format` with a different
compression algorithm and user now needs to overwrite those blobs with a new compression algorithm on the remote registry.
@@option force-compression
#### **--format**, **-f**=*format*

View File

@ -70,11 +70,7 @@ 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:admin@example.com or pkcs7:/path/to/x509-file.
#### **--force-compression**
Use the specified compression algorithm even if the destination contains a differently-compressed variant already.
Usually use for this flag arises when image is prior compressed and pushed using `--compression-format` with a different
compression algorithm and user now needs to overwrite those blobs with a new compression algorithm on the remote registry.
@@option force-compression
#### **--format**, **-f**=*format*