CSIDriverSpec class

CSIDriverSpec is the specification of a CSIDriver.

Constructors

CSIDriverSpec({bool? attachRequired, String? fsGroupPolicy, bool? podInfoOnMount, bool? requiresRepublish, bool? seLinuxMount, bool? storageCapacity, List<TokenRequest>? tokenRequests, List<String>? volumeLifecycleModes})
Default constructor.
const
CSIDriverSpec.fromJson(Map<String, dynamic> json)
Creates a CSIDriverSpec from JSON data.
factory

Properties

attachRequired bool?
attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.
final
fsGroupPolicy String?
fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.
final
hashCode int
The hash code for this object.
no setterinherited
podInfoOnMount bool?
podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.
final
requiresRepublish bool?
requiresRepublish indicates the CSI driver wants NodePublishVolume being periodically called to reflect any possible change in the mounted volume. This field defaults to false.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seLinuxMount bool?
seLinuxMount specifies if the CSI driver supports "-o context" mount option.
final
storageCapacity bool?
storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.
final
tokenRequests List<TokenRequest>?
tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": { "
final
volumeLifecycleModes List<String>?
volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.
final

Methods

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

Operators

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