org.cdk8s.plus22.ImagePullPolicy Maven / Gradle / Ivy
package org.cdk8s.plus22;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.47.0 (build 86d2c33)", date = "2021-12-08T00:16:55.098Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = org.cdk8s.plus22.$Module.class, fqn = "cdk8s-plus-22.ImagePullPolicy")
public enum ImagePullPolicy {
/**
* Every time the kubelet launches a container, the kubelet queries the container image registry to resolve the name to an image digest.
*
* If the kubelet has a container image with that exact
* digest cached locally, the kubelet uses its cached image; otherwise, the kubelet downloads
* (pulls) the image with the resolved digest, and uses that image to launch the container.
*
* Default is Always if ImagePullPolicy is omitted and either the image tag is :latest or
* the image tag is omitted.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
ALWAYS,
/**
* The image is pulled only if it is not already present locally.
*
* Default is IfNotPresent if ImagePullPolicy is omitted and the image tag is present but
* not :latest
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
IF_NOT_PRESENT,
/**
* The image is assumed to exist locally.
*
* No attempt is made to pull the image.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
NEVER,
}