Interface V1.PersistentVolumeSpecOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
V1.PersistentVolumeSpec, V1.PersistentVolumeSpec.Builder
Enclosing class:
V1

public static interface V1.PersistentVolumeSpecOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getCapacityCount

      int getCapacityCount()
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
    • containsCapacity

      boolean containsCapacity(String key)
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
    • getCapacity

      Deprecated.
      Use getCapacityMap() instead.
    • getCapacityMap

      Map<String,Resource.Quantity> getCapacityMap()
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
    • getCapacityOrDefault

      Resource.Quantity getCapacityOrDefault(String key, Resource.Quantity defaultValue)
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
    • getCapacityOrThrow

      Resource.Quantity getCapacityOrThrow(String key)
       A description of the persistent volume's resources and capacity.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
    • hasPersistentVolumeSource

      boolean hasPersistentVolumeSource()
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
    • getPersistentVolumeSource

      V1.PersistentVolumeSource getPersistentVolumeSource()
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
    • getPersistentVolumeSourceOrBuilder

      V1.PersistentVolumeSourceOrBuilder getPersistentVolumeSourceOrBuilder()
       The actual volume backing the persistent volume.
       
      optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2;
    • getAccessModesList

      List<String> getAccessModesList()
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
    • getAccessModesCount

      int getAccessModesCount()
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
    • getAccessModes

      String getAccessModes(int index)
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
    • getAccessModesBytes

      com.google.protobuf.ByteString getAccessModesBytes(int index)
       AccessModes contains all ways the volume can be mounted.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       +optional
       
      repeated string accessModes = 3;
    • hasClaimRef

      boolean hasClaimRef()
       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
    • getClaimRef

      V1.ObjectReference getClaimRef()
       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
    • getClaimRefOrBuilder

      V1.ObjectReferenceOrBuilder getClaimRefOrBuilder()
       ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       Expected to be non-nil when bound.
       claim.VolumeName is the authoritative bind between PV and PVC.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       +optional
       
      optional .k8s.io.api.core.v1.ObjectReference claimRef = 4;
    • hasPersistentVolumeReclaimPolicy

      boolean hasPersistentVolumeReclaimPolicy()
       What happens to a persistent volume when released from its claim.
       Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       Recycle must be supported by the volume plugin underlying this PersistentVolume.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       +optional
       
      optional string persistentVolumeReclaimPolicy = 5;
    • getPersistentVolumeReclaimPolicy

      String getPersistentVolumeReclaimPolicy()
       What happens to a persistent volume when released from its claim.
       Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       Recycle must be supported by the volume plugin underlying this PersistentVolume.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       +optional
       
      optional string persistentVolumeReclaimPolicy = 5;
    • getPersistentVolumeReclaimPolicyBytes

      com.google.protobuf.ByteString getPersistentVolumeReclaimPolicyBytes()
       What happens to a persistent volume when released from its claim.
       Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       Recycle must be supported by the volume plugin underlying this PersistentVolume.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       +optional
       
      optional string persistentVolumeReclaimPolicy = 5;
    • hasStorageClassName

      boolean hasStorageClassName()
       Name of StorageClass to which this persistent volume belongs. Empty value
       means that this volume does not belong to any StorageClass.
       +optional
       
      optional string storageClassName = 6;
    • getStorageClassName

      String getStorageClassName()
       Name of StorageClass to which this persistent volume belongs. Empty value
       means that this volume does not belong to any StorageClass.
       +optional
       
      optional string storageClassName = 6;
    • getStorageClassNameBytes

      com.google.protobuf.ByteString getStorageClassNameBytes()
       Name of StorageClass to which this persistent volume belongs. Empty value
       means that this volume does not belong to any StorageClass.
       +optional
       
      optional string storageClassName = 6;
    • getMountOptionsList

      List<String> getMountOptionsList()
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
    • getMountOptionsCount

      int getMountOptionsCount()
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
    • getMountOptions

      String getMountOptions(int index)
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
    • getMountOptionsBytes

      com.google.protobuf.ByteString getMountOptionsBytes(int index)
       A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       simply fail if one is invalid.
       More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       +optional
       
      repeated string mountOptions = 7;
    • hasVolumeMode

      boolean hasVolumeMode()
       volumeMode defines if a volume is intended to be used with a formatted filesystem
       or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       +optional
       
      optional string volumeMode = 8;
    • getVolumeMode

      String getVolumeMode()
       volumeMode defines if a volume is intended to be used with a formatted filesystem
       or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       +optional
       
      optional string volumeMode = 8;
    • getVolumeModeBytes

      com.google.protobuf.ByteString getVolumeModeBytes()
       volumeMode defines if a volume is intended to be used with a formatted filesystem
       or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       +optional
       
      optional string volumeMode = 8;
    • hasNodeAffinity

      boolean hasNodeAffinity()
       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
    • getNodeAffinity

      V1.VolumeNodeAffinity getNodeAffinity()
       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;
    • getNodeAffinityOrBuilder

      V1.VolumeNodeAffinityOrBuilder getNodeAffinityOrBuilder()
       NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       This field influences the scheduling of pods that use this volume.
       +optional
       
      optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9;