Package io.fabric8.kubernetes.api.model
Class ImageVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ImageVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ImageVolumeSourceBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ImageVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<ImageVolumeSourceBuilder>, KubernetesResource
ImageVolumeSource represents a image volume resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageVolumeSource()
No args constructor for use in serializationImageVolumeSource(String pullPolicy, String reference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageVolumeSourceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getPullPolicy()
Policy for pulling OCI objects.String
getReference()
Required: Image or artifact reference to be used.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setPullPolicy(String pullPolicy)
Policy for pulling OCI objects.void
setReference(String reference)
Required: Image or artifact reference to be used.ImageVolumeSourceBuilder
toBuilder()
-
-
-
Method Detail
-
getPullPolicy
public String getPullPolicy()
Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
-
setPullPolicy
public void setPullPolicy(String pullPolicy)
Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
-
getReference
public String getReference()
Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.
-
setReference
public void setReference(String reference)
Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.
-
edit
public ImageVolumeSourceBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<ImageVolumeSourceBuilder>
-
toBuilder
public ImageVolumeSourceBuilder toBuilder()
-
-