Skip to content

core.v1.csiVolumeSource

"Represents a source location of a volume to mount, managed by an external CSI driver"

Index

Fields

fn withDriver

withDriver(driver)

"driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster."

fn withFsType

withFsType(fsType)

"fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply."

fn withReadOnly

withReadOnly(readOnly)

"readOnly specifies a read-only configuration for the volume. Defaults to false (read/write)."

fn withVolumeAttributes

withVolumeAttributes(volumeAttributes)

"volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values."

fn withVolumeAttributesMixin

withVolumeAttributesMixin(volumeAttributes)

"volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values."

Note: This function appends passed data to existing values

obj nodePublishSecretRef

"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."

fn nodePublishSecretRef.withName

withName(name)

"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"