Class V1ImageVolumeSource

java.lang.Object
io.kubernetes.client.openapi.models.V1ImageVolumeSource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-07T19:21:52.410010Z[Etc/UTC]") public class V1ImageVolumeSource extends Object
ImageVolumeSource represents a image volume resource.
  • Field Details

  • Constructor Details

    • V1ImageVolumeSource

      public V1ImageVolumeSource()
  • Method Details

    • pullPolicy

      public V1ImageVolumeSource pullPolicy(String pullPolicy)
    • getPullPolicy

      @Nullable 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.
      Returns:
      pullPolicy
    • setPullPolicy

      public void setPullPolicy(String pullPolicy)
    • reference

      public V1ImageVolumeSource reference(String reference)
    • getReference

      @Nullable 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.
      Returns:
      reference
    • setReference

      public void setReference(String reference)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object