@Generated(value="jsii-pacmak/1.41.0 (build a274beb)", date="2021-10-30T01:04:46.487Z") @Stability(value=Stable) public enum ImagePullPolicy extends Enum<ImagePullPolicy>
| Enum Constant and 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.
|
| Modifier and Type | Method and 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.
|
@Stability(value=Stable) public static final ImagePullPolicy ALWAYS
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.
@Stability(value=Stable) public static final ImagePullPolicy IF_NOT_PRESENT
Default is IfNotPresent if ImagePullPolicy is omitted and the image tag is present but not :latest
@Stability(value=Stable) public static final ImagePullPolicy NEVER
No attempt is made to pull the image.
public static ImagePullPolicy[] values()
for (ImagePullPolicy c : ImagePullPolicy.values()) System.out.println(c);
public static ImagePullPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.