-
Notifications
You must be signed in to change notification settings - Fork 41.3k
Open
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.sig/nodeCategorizes an issue or PR as relevant to SIG Node.Categorizes an issue or PR as relevant to SIG Node.
Description
What would you like to be added?
An extra new mode for imagePullPolicy
named IfNewerNotPresent
that pulls image if image ID (ref/digest) on remote is not matching.
Why is this needed?
This gives a solution to issues such as:
- Pods that are running with an image for example v1.0.0 and a backport fix - update is released, on that image v1.0.0, without changing the tag.
Currently, the pod will continue run with the non-backported image (that may be faulty) even if imagePullPolicy is set to IfNotPresent. IfNotPresent doesnt check the integrity of the image if pod is restarted and keeps using the older (non-backported) image.
With this feature you can have a combination of the functionality of IfNotPresent and Integrity check that pulls image if changed in the remote registry.
A prototype - working code:
#133677
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.sig/nodeCategorizes an issue or PR as relevant to SIG Node.Categorizes an issue or PR as relevant to SIG Node.