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

libimage: pull: platform checks for non-local platform #882

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

vrothberg
Copy link
Member

After containers/podman/issues/10682, we decided to always re-pull
images of non-local platforms and match any local image. Over time, we
refined this logic to not always pull the image but only if there is a
newer one. This has slightly changed the semantics and requires to
perform platform checks when looking up a local image. Otherwise, bogus
values would match a local image and mistakenly return it.

Signed-off-by: Valentin Rothberg [email protected]

@vrothberg vrothberg changed the title libimage: pull: platform checks for non-local platform [WIP] libimage: pull: platform checks for non-local platform Jan 12, 2022
After containers/podman/issues/10682, we decided to always re-pull
images of non-local platforms and match *any* local image. Over time, we
refined this logic to not *always* pull the image but only if there is a
*newer* one. This has slightly changed the semantics and requires to
perform platform checks when looking up a local image. Otherwise, bogus
values would match a local image and mistakenly return it.

Signed-off-by: Valentin Rothberg <[email protected]>
@vrothberg
Copy link
Member Author

Podman PR: containers/podman#12821

Also added a regression test here that tests what Podman CI caught.

@vrothberg
Copy link
Member Author

@rhatdan, the new logic starts to make sense now.

@vrothberg vrothberg changed the title [WIP] libimage: pull: platform checks for non-local platform libimage: pull: platform checks for non-local platform Jan 12, 2022
@vrothberg
Copy link
Member Author

containers/podman#12821 is green, @containers/podman-maintainers @giuseppe @Luap99 @flouthoc PTAL

@rhatdan
Copy link
Member

rhatdan commented Jan 12, 2022

LGTM
@giuseppe @Luap99 @flouthoc PTAL

@flouthoc
Copy link
Collaborator

LGTM

@flouthoc
Copy link
Collaborator

/lgtm
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 12, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 31e8cc4 into containers:main Jan 12, 2022
@vrothberg vrothberg deleted the platform-checks branch January 12, 2022 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants