Class V1ImageVolumeSource
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ImageVolumeSource
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ImageVolumeSource
extends Object
ImageVolumeSource represents a image volume resource.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Policy for pulling OCI objects.Required: Image or artifact reference to be used.int
hashCode()
pullPolicy
(String pullPolicy) Set pullPolicy in a chainable fashion.Set reference in a chainable fashion.void
setPullPolicy
(String pullPolicy) Set the pullPolicy property valuevoid
setReference
(String reference) Set the reference property valuetoString()
-
Field Details
-
JSON_PROPERTY_PULL_POLICY
- See Also:
-
JSON_PROPERTY_REFERENCE
- See Also:
-
-
Constructor Details
-
V1ImageVolumeSource
public V1ImageVolumeSource()
-
-
Method Details
-
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.- Returns:
- the pullPolicy property value
-
setPullPolicy
Set the pullPolicy property value- Parameters:
pullPolicy
- property value to set
-
pullPolicy
Set pullPolicy in a chainable fashion.- Returns:
- The same instance of V1ImageVolumeSource for chaining.
-
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.- Returns:
- the reference property value
-
setReference
Set the reference property value- Parameters:
reference
- property value to set
-
reference
Set reference in a chainable fashion.- Returns:
- The same instance of V1ImageVolumeSource for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-