Skip to content

core.v1.flexVolumeSource

"FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin."

Index

Fields

fn withDriver

withDriver(driver)

"driver is the name of the driver to use for this volume."

fn withFsType

withFsType(fsType)

"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script."

fn withOptions

withOptions(options)

"options is Optional: this field holds extra command options if any."

fn withOptionsMixin

withOptionsMixin(options)

"options is Optional: this field holds extra command options if any."

Note: This function appends passed data to existing values

fn withReadOnly

withReadOnly(readOnly)

"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."

obj secretRef

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

fn secretRef.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"