PersistentVolumeSpecPatch class
PersistentVolumeSpec is the specification of a persistent volume.
Constructors
-
PersistentVolumeSpecPatch({Input<
List< ? accessModes, Input<String> >AWSElasticBlockStoreVolumeSourcePatch> ? awsElasticBlockStore, Input<AzureDiskVolumeSourcePatch> ? azureDisk, Input<AzureFilePersistentVolumeSourcePatch> ? azureFile, Input<Map< ? capacity, Input<String, String> >CephFSPersistentVolumeSourcePatch> ? cephfs, Input<CinderPersistentVolumeSourcePatch> ? cinder, Input<ObjectReferencePatch> ? claimRef, Input<CSIPersistentVolumeSourcePatch> ? csi, Input<FCVolumeSourcePatch> ? fc, Input<FlexPersistentVolumeSourcePatch> ? flexVolume, Input<FlockerVolumeSourcePatch> ? flocker, Input<GCEPersistentDiskVolumeSourcePatch> ? gcePersistentDisk, Input<GlusterfsPersistentVolumeSourcePatch> ? glusterfs, Input<HostPathVolumeSourcePatch> ? hostPath, Input<ISCSIPersistentVolumeSourcePatch> ? iscsi, Input<LocalVolumeSourcePatch> ? local, Input<List< ? mountOptions, Input<String> >NFSVolumeSourcePatch> ? nfs, Input<VolumeNodeAffinityPatch> ? nodeAffinity, Input<String> ? persistentVolumeReclaimPolicy, Input<PhotonPersistentDiskVolumeSourcePatch> ? photonPersistentDisk, Input<PortworxVolumeSourcePatch> ? portworxVolume, Input<QuobyteVolumeSourcePatch> ? quobyte, Input<RBDPersistentVolumeSourcePatch> ? rbd, Input<ScaleIOPersistentVolumeSourcePatch> ? scaleIO, Input<String> ? storageClassName, Input<StorageOSPersistentVolumeSourcePatch> ? storageos, Input<String> ? volumeAttributesClassName, Input<String> ? volumeMode, Input<VsphereVirtualDiskVolumeSourcePatch> ? vsphereVolume}) -
Creates a new PersistentVolumeSpecPatch.
accessModesaccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modesawsElasticBlockStoreawsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstoreazureDiskazureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.azureFileazureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.capacitycapacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacitycephfscephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.cindercinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.mdclaimRefclaimRef 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#bindingcsicsi represents storage that is handled by an external CSI driver.fcfc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.flexVolumeflexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.flockerflocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.gcePersistentDiskgcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdiskglusterfsglusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.mdhostPathhostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpathiscsiiscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.locallocal represents directly-attached storage with node affinitymountOptionsmountOptions is the 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-optionsnfsnfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfsnodeAffinitynodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. This field is mutable if MutablePVNodeAffinity feature gate is enabled.persistentVolumeReclaimPolicypersistentVolumeReclaimPolicy defines 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#reclaimingphotonPersistentDiskphotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.portworxVolumeportworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver.quobytequobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.rbdrbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.mdscaleIOscaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.storageClassNamestorageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.storageosstorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.mdvolumeAttributesClassNameName of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.volumeModevolumeMode 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.vsphereVolumevsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.const -
PersistentVolumeSpecPatch.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
accessModes
→ Input<
List< ?String> > -
accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
final
-
awsElasticBlockStore
→ Input<
AWSElasticBlockStoreVolumeSourcePatch> ? -
awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
final
-
azureDisk
→ Input<
AzureDiskVolumeSourcePatch> ? -
azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.
final
-
azureFile
→ Input<
AzureFilePersistentVolumeSourcePatch> ? -
azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.
final
-
capacity
→ Input<
Map< ?String, String> > -
capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
final
-
cephfs
→ Input<
CephFSPersistentVolumeSourcePatch> ? -
cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
final
-
cinder
→ Input<
CinderPersistentVolumeSourcePatch> ? -
cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
final
-
claimRef
→ Input<
ObjectReferencePatch> ? -
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
final
-
csi
→ Input<
CSIPersistentVolumeSourcePatch> ? -
csi represents storage that is handled by an external CSI driver.
final
-
fc
→ Input<
FCVolumeSourcePatch> ? -
fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
final
-
flexVolume
→ Input<
FlexPersistentVolumeSourcePatch> ? -
flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
final
-
flocker
→ Input<
FlockerVolumeSourcePatch> ? -
flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
final
-
gcePersistentDisk
→ Input<
GCEPersistentDiskVolumeSourcePatch> ? -
gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
final
-
glusterfs
→ Input<
GlusterfsPersistentVolumeSourcePatch> ? -
glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hostPath
→ Input<
HostPathVolumeSourcePatch> ? -
hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
final
-
iscsi
→ Input<
ISCSIPersistentVolumeSourcePatch> ? -
iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.
final
-
local
→ Input<
LocalVolumeSourcePatch> ? -
local represents directly-attached storage with node affinity
final
-
mountOptions
→ Input<
List< ?String> > -
mountOptions is the 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-optionsfinal -
nfs
→ Input<
NFSVolumeSourcePatch> ? -
nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
final
-
nodeAffinity
→ Input<
VolumeNodeAffinityPatch> ? -
nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. This field is mutable if MutablePVNodeAffinity feature gate is enabled.
final
-
persistentVolumeReclaimPolicy
→ Input<
String> ? -
persistentVolumeReclaimPolicy defines 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
final
-
photonPersistentDisk
→ Input<
PhotonPersistentDiskVolumeSourcePatch> ? -
photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
final
-
portworxVolume
→ Input<
PortworxVolumeSourcePatch> ? -
portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver.
final
-
quobyte
→ Input<
QuobyteVolumeSourcePatch> ? -
quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
final
-
rbd
→ Input<
RBDPersistentVolumeSourcePatch> ? -
rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaleIO
→ Input<
ScaleIOPersistentVolumeSourcePatch> ? -
scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
final
-
storageClassName
→ Input<
String> ? -
storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.
final
-
storageos
→ Input<
StorageOSPersistentVolumeSourcePatch> ? -
storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md
final
-
volumeAttributesClassName
→ Input<
String> ? -
Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.
final
-
volumeMode
→ Input<
String> ? -
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.
final
-
vsphereVolume
→ Input<
VsphereVirtualDiskVolumeSourcePatch> ? -
vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited