CsiVolumeSourceV1 Properties
ClassProperties5 members
Represents a CSI (Container Storage Interface) volume source in Kubernetes.
Gets or sets the name of the CSI driver that handles the volume.
public string Driver { get; set; }Remarks
The driver name identifies the CSI driver registered in the cluster that should publish this volume for the pod.
Gets or sets the filesystem type to mount.
public string? FsType { get; set; }Remarks
This value is passed to the CSI driver for volume publishing. It is used by filesystem-backed CSI drivers and may be ignored by drivers that do not mount a filesystem.
Gets or sets a reference to the secret that contains node publish credentials.
public LocalObjectReferenceV1? NodePublishSecretRef { get; set; }Remarks
Some CSI drivers use this reference to authenticate node publish operations. The referenced object is a Kubernetes Secret in the same namespace as the pod.
Gets or sets a value indicating whether the volume should be mounted read-only.
public bool? ReadOnly { get; set; }Remarks
If set to
true, Kubernetes requests a read-only mount from the CSI driver. When omitted, Kubernetes treats the value as false, so the volume is mounted read/write. Gets the driver-specific volume attributes.
public Dictionary<string, string> VolumeAttributes { get; }Remarks
Each key-value pair is passed to the CSI driver. For example, the Secrets Store CSI driver uses this collection to identify the SecretProviderClass for the pod.