Enum ImagePullPolicy
- All Implemented Interfaces:
Serializable
,Comparable<ImagePullPolicy>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:57.737Z")
@Stability(Stable)
public enum ImagePullPolicy
extends Enum<ImagePullPolicy>
Determines when the image is pulled from the registry to launch a container.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEvery time the kubelet launches a container, the kubelet queries the container image registry to resolve the name to an image digest.The image is pulled only if it is not already present locally.The kubelet does not try fetching the image. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImagePullPolicy
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 Details
-
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 pulls the image with the resolved digest, and uses that image to launch the container.
- See Also:
-
IF_NOT_PRESENT
The image is pulled only if it is not already present locally. -
NEVER
The kubelet does not try fetching the image.If the image is somehow already present locally, the kubelet attempts to start the container; otherwise, startup fails. See pre-pulled images for more details.
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-