Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

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; }
The driver name identifies the CSI driver registered in the cluster that should publish this volume for the pod.
FsTypeSection titled FsTypenullablestring?
Gets or sets the filesystem type to mount.
public string? FsType { get; set; }
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; }
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.
ReadOnlySection titled ReadOnlynullablebool?
Gets or sets a value indicating whether the volume should be mounted read-only.
public bool? ReadOnly { get; set; }
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.
VolumeAttributesSection titled VolumeAttributesDictionary<string, string>
Gets the driver-specific volume attributes.
public Dictionary<string, string> VolumeAttributes { get; }
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.