public enum ImagePullPolicy extends Enum<ImagePullPolicy>
| Enum Constant and Description |
|---|
Always
Always pull the image regardless if it's present in the registry already.
|
IfNotPresent
Only pull the image if it's not present in the registry.
|
Never
Never pull the image, only use what is present in the registry.
|
| Modifier and Type | Method and Description |
|---|---|
static ImagePullPolicy |
relaxedValueOf(String imagePullPolicy)
Converts the string of the provided image pull policy to the appropriate enum value.
|
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.
|
public static final ImagePullPolicy Always
public static final ImagePullPolicy IfNotPresent
public static final ImagePullPolicy Never
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 nullpublic static ImagePullPolicy relaxedValueOf(String imagePullPolicy)
IfNotPresent if no matching image pull policy is found.imagePullPolicy - the image pull policy to useImagePullPolicyCopyright © 2019 Pivotal Software, Inc.. All rights reserved.