Class V1ImageVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1ImageVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1ImageVolumeSource
extends Object
ImageVolumeSource represents a image volume resource.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1ImageVolumeSource
Create an instance of V1ImageVolumeSource given an JSON stringPolicy for pulling OCI objects.Required: Image or artifact reference to be used.int
hashCode()
pullPolicy
(String pullPolicy) void
setPullPolicy
(String pullPolicy) void
setReference
(String reference) toJson()
Convert an instance of V1ImageVolumeSource to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_PULL_POLICY
- See Also:
-
SERIALIZED_NAME_REFERENCE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ImageVolumeSource
public V1ImageVolumeSource()
-
-
Method Details
-
pullPolicy
-
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
-
reference
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1ImageVolumeSource
-
fromJson
Create an instance of V1ImageVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ImageVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1ImageVolumeSource
-
toJson
Convert an instance of V1ImageVolumeSource to an JSON string- Returns:
- JSON string
-