Package org.cdk8s.plus24
Enum ImagePullPolicy
- java.lang.Object
-
- java.lang.Enum<ImagePullPolicy>
-
- org.cdk8s.plus24.ImagePullPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<ImagePullPolicy>
@Generated(value="jsii-pacmak/1.65.0 (build 7a02b7f)", date="2022-08-21T02:57:21.413Z") @Stability(Stable) public enum ImagePullPolicy extends Enum<ImagePullPolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Every time the kubelet launches a container, the kubelet queries the container image registry to resolve the name to an image digest.IF_NOT_PRESENT
The image is pulled only if it is not already present locally.NEVER
The image is assumed to exist locally.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImagePullPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImagePullPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
@Stability(Stable) public static final ImagePullPolicy ALWAYS
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.
-
IF_NOT_PRESENT
@Stability(Stable) public static final ImagePullPolicy IF_NOT_PRESENT
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
-
NEVER
@Stability(Stable) public static final ImagePullPolicy NEVER
The image is assumed to exist locally.No attempt is made to pull the image.
-
-
Method Detail
-
values
public static ImagePullPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImagePullPolicy c : ImagePullPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImagePullPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-