CSIPersistentVolumeSource class

Represents storage that is managed by an external CSI volume driver (Beta feature).

Constructors

CSIPersistentVolumeSource({SecretReference? controllerExpandSecretRef, SecretReference? controllerPublishSecretRef, required String driver, String? fsType, SecretReference? nodeExpandSecretRef, SecretReference? nodePublishSecretRef, SecretReference? nodeStageSecretRef, bool? readOnly, Map<String, String>? volumeAttributes, required String volumeHandle})
Default constructor.
const
CSIPersistentVolumeSource.fromJson(Map<String, dynamic> json)
Creates a CSIPersistentVolumeSource from JSON data.
factory

Properties

controllerExpandSecretRef SecretReference?
controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
final
controllerPublishSecretRef SecretReference?
controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
final
driver String
driver is the name of the driver to use for this volume. Required.
final
fsType String?
fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs".
final
hashCode int
The hash code for this object.
no setterinherited
nodeExpandSecretRef SecretReference?
nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is a beta field which is enabled default by CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed.
final
nodePublishSecretRef SecretReference?
nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
final
nodeStageSecretRef SecretReference?
nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
final
readOnly bool?
readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
volumeAttributes Map<String, String>?
volumeAttributes of the volume to publish.
final
volumeHandle String
volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a CSIPersistentVolumeSource instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited