-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Do not pull if image domain is localhost #8641
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: umohnani8 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 |
b11fba3
to
a44a7ba
Compare
80f5fed
to
66b7e22
Compare
LGTM |
a few man page nits, otherwise LGTM |
With podman play kube, podman would always attempt to pull if the image has the :latest tag. But this would fail if the image was built locally and given latest as the tag. Images build with podman and buildah have localhost as the domain, so check if the domain is localhost. If that is the case, then don't attempt a pull. Signed-off-by: Urvashi Mohnani <[email protected]>
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
/lgtm |
/hold |
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.
Could we change the pull policy to "pull if newer"?
The localhost/
prefixing of Podman and Buildah ignores the possibility of a registry running on localhost
.
The idea behind that proposal is that we'd be pulling an image if it exists on a registry (and has a different digest) but otherwise use the local one. |
ci task failed, need someone help to restart them, code LGTM |
/hold cancel |
Why do you merge when my comments weren't addressed? |
oops, I should have commented that I am working on addressing @vrothberg's comments (spoke with him on slack). I will open a follow up PR to address those. |
With podman play kube, podman would always attempt to
pull if the image has the :latest tag. But this would
fail if the image was built locally and given latest
as the tag. Images build with podman and buildah have
localhost as the domain, so check if the domain is localhost.
If that is the case, then don't attempt a pull.
Fixes #7838
Signed-off-by: Urvashi Mohnani [email protected]