-
Notifications
You must be signed in to change notification settings - Fork 202
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
libimage: pull: platform checks for non-local platform #882
Conversation
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]>
c81f804
to
7a7a142
Compare
Podman PR: containers/podman#12821 Also added a regression test here that tests what Podman CI caught. |
@rhatdan, the new logic starts to make sense now. |
containers/podman#12821 is green, @containers/podman-maintainers @giuseppe @Luap99 @flouthoc PTAL |
LGTM |
/lgtm |
[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 |
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]