Skip to content

Add new imagePullPolicy mode IfNewerNotPresent, that pulls image if image ID (ref/digest) on remote is not matching. #133680

@nikos445

Description

@nikos445

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

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/nodeCategorizes an issue or PR as relevant to SIG Node.

    Type

    No type

    Projects

    Status

    Needs Triage

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions