Skip to content
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: add new hidden flag --pull-option #22977

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

giuseppe
Copy link
Member

add a new flag that allows to override the pull options configured in the storage.conf file.

e.g.: --pull-option="enable_partial_images=false" can be specified to Podman to disable partial pulls even if enabled.

Leave it as a hidden configuration flag for now since the API itself is marked as experimental in c/storage.

Currently c/storage doesn't honor the overrides, being fixed with containers/storage#1966

None

@giuseppe giuseppe added the No New Tests Allow PR to proceed without adding regression tests label Jun 12, 2024
Copy link
Contributor

openshift-ci bot commented Jun 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 12, 2024
@giuseppe
Copy link
Member Author

@edsantiago I've added a new flag to override pull options from the CLI. It needs containers/storage#1966 though

Copy link

Cockpit tests failed for commit b651bae. @martinpitt, @jelly, @mvollmer please check.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@@ -580,6 +580,8 @@ func rootFlags(cmd *cobra.Command, podmanConfig *entities.PodmanConfig) {

pFlags.BoolVar(&podmanConfig.TransientStore, "transient-store", false, "Enable transient container storage")

pFlags.StringArrayVar(&podmanConfig.PullOptions, "pull-option", nil, "Tweak how an image is pulled")
Copy link
Member

@baude baude Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this can be seen by users, it probably should be something that uses words like "custom pull options" overrides, etc.?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is not visible, but better to improve it so it is ready when/if decide to make it visible.

Changed in the new version

@baude
Copy link
Member

baude commented Jun 12, 2024

code LGTM ; would like to see the CLI help tightened up if convenient.

add a new flag that allows to override the pull options configured in
the storage.conf file.

e.g.: --pull-option="enable_partial_images=false" can be specified to
Podman to disable partial pulls even if enabled.

Leave it as a hidden configuration flag for now since the API itself
is marked as experimental in c/storage.

Currently c/storage doesn't honor the overrides, being fixed with
containers/storage#1966

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@mheon
Copy link
Member

mheon commented Jun 13, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 13, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 09f22eb into containers:main Jun 13, 2024
90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. No New Tests Allow PR to proceed without adding regression tests release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants