storage.v1.volumeAttachmentSource
"VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set."
Index
fn withPersistentVolumeName(persistentVolumeName)
obj inlineVolumeSpec
fn withAccessModes(accessModes)
fn withAccessModesMixin(accessModes)
fn withCapacity(capacity)
fn withCapacityMixin(capacity)
fn withMountOptions(mountOptions)
fn withMountOptionsMixin(mountOptions)
fn withPersistentVolumeReclaimPolicy(persistentVolumeReclaimPolicy)
fn withStorageClassName(storageClassName)
fn withVolumeMode(volumeMode)
obj inlineVolumeSpec.awsElasticBlockStore
obj inlineVolumeSpec.azureDisk
obj inlineVolumeSpec.azureFile
obj inlineVolumeSpec.cephfs
obj inlineVolumeSpec.cinder
obj inlineVolumeSpec.claimRef
obj inlineVolumeSpec.csi
fn withDriver(driver)
fn withFsType(fsType)
fn withReadOnly(readOnly)
fn withVolumeAttributes(volumeAttributes)
fn withVolumeAttributesMixin(volumeAttributes)
fn withVolumeHandle(volumeHandle)
obj inlineVolumeSpec.csi.controllerExpandSecretRef
obj inlineVolumeSpec.csi.controllerPublishSecretRef
obj inlineVolumeSpec.csi.nodeExpandSecretRef
obj inlineVolumeSpec.csi.nodePublishSecretRef
obj inlineVolumeSpec.csi.nodeStageSecretRef
obj inlineVolumeSpec.fc
obj inlineVolumeSpec.flexVolume
obj inlineVolumeSpec.flocker
obj inlineVolumeSpec.gcePersistentDisk
obj inlineVolumeSpec.glusterfs
obj inlineVolumeSpec.hostPath
obj inlineVolumeSpec.iscsi
fn withChapAuthDiscovery(chapAuthDiscovery)
fn withChapAuthSession(chapAuthSession)
fn withFsType(fsType)
fn withInitiatorName(initiatorName)
fn withIqn(iqn)
fn withIscsiInterface(iscsiInterface)
fn withLun(lun)
fn withPortals(portals)
fn withPortalsMixin(portals)
fn withReadOnly(readOnly)
fn withTargetPortal(targetPortal)
obj inlineVolumeSpec.iscsi.secretRef
obj inlineVolumeSpec.local
obj inlineVolumeSpec.nfs
obj inlineVolumeSpec.nodeAffinity
obj inlineVolumeSpec.photonPersistentDisk
obj inlineVolumeSpec.portworxVolume
obj inlineVolumeSpec.quobyte
obj inlineVolumeSpec.rbd
obj inlineVolumeSpec.scaleIO
obj inlineVolumeSpec.storageos
obj inlineVolumeSpec.vsphereVolume
Fields
fn withPersistentVolumeName
withPersistentVolumeName(persistentVolumeName)
"persistentVolumeName represents the name of the persistent volume to attach."
obj inlineVolumeSpec
"PersistentVolumeSpec is the specification of a persistent volume."
fn inlineVolumeSpec.withAccessModes
withAccessModes(accessModes)
"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"
fn inlineVolumeSpec.withAccessModesMixin
withAccessModesMixin(accessModes)
"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"
Note: This function appends passed data to existing values
fn inlineVolumeSpec.withCapacity
withCapacity(capacity)
"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity"
fn inlineVolumeSpec.withCapacityMixin
withCapacityMixin(capacity)
"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity"
Note: This function appends passed data to existing values
fn inlineVolumeSpec.withMountOptions
withMountOptions(mountOptions)
"mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"
fn inlineVolumeSpec.withMountOptionsMixin
withMountOptionsMixin(mountOptions)
"mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"
Note: This function appends passed data to existing values
fn inlineVolumeSpec.withPersistentVolumeReclaimPolicy
withPersistentVolumeReclaimPolicy(persistentVolumeReclaimPolicy)
"persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming"
fn inlineVolumeSpec.withStorageClassName
withStorageClassName(storageClassName)
"storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass."
fn inlineVolumeSpec.withVolumeMode
withVolumeMode(volumeMode)
"volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec."
obj inlineVolumeSpec.awsElasticBlockStore
"Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling."
fn inlineVolumeSpec.awsElasticBlockStore.withFsType
withFsType(fsType)
"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"
fn inlineVolumeSpec.awsElasticBlockStore.withPartition
withPartition(partition)
"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty)."
fn inlineVolumeSpec.awsElasticBlockStore.withReadOnly
withReadOnly(readOnly)
"readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"
fn inlineVolumeSpec.awsElasticBlockStore.withVolumeID
withVolumeID(volumeID)
"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"
obj inlineVolumeSpec.azureDisk
"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."
fn inlineVolumeSpec.azureDisk.withCachingMode
withCachingMode(cachingMode)
"cachingMode is the Host Caching mode: None, Read Only, Read Write."
fn inlineVolumeSpec.azureDisk.withDiskName
withDiskName(diskName)
"diskName is the Name of the data disk in the blob storage"
fn inlineVolumeSpec.azureDisk.withDiskURI
withDiskURI(diskURI)
"diskURI is the URI of data disk in the blob storage"
fn inlineVolumeSpec.azureDisk.withFsType
withFsType(fsType)
"fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
fn inlineVolumeSpec.azureDisk.withKind
withKind(kind)
"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared"
fn inlineVolumeSpec.azureDisk.withReadOnly
withReadOnly(readOnly)
"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
obj inlineVolumeSpec.azureFile
"AzureFile represents an Azure File Service mount on the host and bind mount to the pod."
fn inlineVolumeSpec.azureFile.withReadOnly
withReadOnly(readOnly)
"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
fn inlineVolumeSpec.azureFile.withSecretName
withSecretName(secretName)
"secretName is the name of secret that contains Azure Storage Account Name and Key"
fn inlineVolumeSpec.azureFile.withSecretNamespace
withSecretNamespace(secretNamespace)
"secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod"
fn inlineVolumeSpec.azureFile.withShareName
withShareName(shareName)
"shareName is the azure Share Name"
obj inlineVolumeSpec.cephfs
"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling."
fn inlineVolumeSpec.cephfs.withMonitors
withMonitors(monitors)
"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
fn inlineVolumeSpec.cephfs.withMonitorsMixin
withMonitorsMixin(monitors)
"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
Note: This function appends passed data to existing values
fn inlineVolumeSpec.cephfs.withPath
withPath(path)
"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /"
fn inlineVolumeSpec.cephfs.withReadOnly
withReadOnly(readOnly)
"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
fn inlineVolumeSpec.cephfs.withSecretFile
withSecretFile(secretFile)
"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
fn inlineVolumeSpec.cephfs.withUser
withUser(user)
"user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
obj inlineVolumeSpec.cephfs.secretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.cephfs.secretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.cephfs.secretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.cinder
"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling."
fn inlineVolumeSpec.cinder.withFsType
withFsType(fsType)
"fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"
fn inlineVolumeSpec.cinder.withReadOnly
withReadOnly(readOnly)
"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"
fn inlineVolumeSpec.cinder.withVolumeID
withVolumeID(volumeID)
"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"
obj inlineVolumeSpec.cinder.secretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.cinder.secretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.cinder.secretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.claimRef
"ObjectReference contains enough information to let you inspect or modify the referred object."
fn inlineVolumeSpec.claimRef.withApiVersion
withApiVersion(apiVersion)
"API version of the referent."
fn inlineVolumeSpec.claimRef.withFieldPath
withFieldPath(fieldPath)
"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."
fn inlineVolumeSpec.claimRef.withKind
withKind(kind)
"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
fn inlineVolumeSpec.claimRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn inlineVolumeSpec.claimRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
fn inlineVolumeSpec.claimRef.withResourceVersion
withResourceVersion(resourceVersion)
"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"
fn inlineVolumeSpec.claimRef.withUid
withUid(uid)
"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"
obj inlineVolumeSpec.csi
"Represents storage that is managed by an external CSI volume driver (Beta feature)"
fn inlineVolumeSpec.csi.withDriver
withDriver(driver)
"driver is the name of the driver to use for this volume. Required."
fn inlineVolumeSpec.csi.withFsType
withFsType(fsType)
"fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\"."
fn inlineVolumeSpec.csi.withReadOnly
withReadOnly(readOnly)
"readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write)."
fn inlineVolumeSpec.csi.withVolumeAttributes
withVolumeAttributes(volumeAttributes)
"volumeAttributes of the volume to publish."
fn inlineVolumeSpec.csi.withVolumeAttributesMixin
withVolumeAttributesMixin(volumeAttributes)
"volumeAttributes of the volume to publish."
Note: This function appends passed data to existing values
fn inlineVolumeSpec.csi.withVolumeHandle
withVolumeHandle(volumeHandle)
"volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required."
obj inlineVolumeSpec.csi.controllerExpandSecretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.csi.controllerExpandSecretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.csi.controllerExpandSecretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.csi.controllerPublishSecretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.csi.controllerPublishSecretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.csi.controllerPublishSecretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.csi.nodeExpandSecretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.csi.nodeExpandSecretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.csi.nodeExpandSecretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.csi.nodePublishSecretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.csi.nodePublishSecretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.csi.nodePublishSecretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.csi.nodeStageSecretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.csi.nodeStageSecretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.csi.nodeStageSecretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.fc
"Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling."
fn inlineVolumeSpec.fc.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\". Implicitly inferred to be \"ext4\" if unspecified."
fn inlineVolumeSpec.fc.withLun
withLun(lun)
"lun is Optional: FC target lun number"
fn inlineVolumeSpec.fc.withReadOnly
withReadOnly(readOnly)
"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
fn inlineVolumeSpec.fc.withTargetWWNs
withTargetWWNs(targetWWNs)
"targetWWNs is Optional: FC target worldwide names (WWNs)"
fn inlineVolumeSpec.fc.withTargetWWNsMixin
withTargetWWNsMixin(targetWWNs)
"targetWWNs is Optional: FC target worldwide names (WWNs)"
Note: This function appends passed data to existing values
fn inlineVolumeSpec.fc.withWwids
withWwids(wwids)
"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."
fn inlineVolumeSpec.fc.withWwidsMixin
withWwidsMixin(wwids)
"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."
Note: This function appends passed data to existing values
obj inlineVolumeSpec.flexVolume
"FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin."
fn inlineVolumeSpec.flexVolume.withDriver
withDriver(driver)
"driver is the name of the driver to use for this volume."
fn inlineVolumeSpec.flexVolume.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 inlineVolumeSpec.flexVolume.withOptions
withOptions(options)
"options is Optional: this field holds extra command options if any."
fn inlineVolumeSpec.flexVolume.withOptionsMixin
withOptionsMixin(options)
"options is Optional: this field holds extra command options if any."
Note: This function appends passed data to existing values
fn inlineVolumeSpec.flexVolume.withReadOnly
withReadOnly(readOnly)
"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
obj inlineVolumeSpec.flexVolume.secretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.flexVolume.secretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.flexVolume.secretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.flocker
"Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling."
fn inlineVolumeSpec.flocker.withDatasetName
withDatasetName(datasetName)
"datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated"
fn inlineVolumeSpec.flocker.withDatasetUUID
withDatasetUUID(datasetUUID)
"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset"
obj inlineVolumeSpec.gcePersistentDisk
"Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling."
fn inlineVolumeSpec.gcePersistentDisk.withFsType
withFsType(fsType)
"fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"
fn inlineVolumeSpec.gcePersistentDisk.withPartition
withPartition(partition)
"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"
fn inlineVolumeSpec.gcePersistentDisk.withPdName
withPdName(pdName)
"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"
fn inlineVolumeSpec.gcePersistentDisk.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"
obj inlineVolumeSpec.glusterfs
"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling."
fn inlineVolumeSpec.glusterfs.withEndpoints
withEndpoints(endpoints)
"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"
fn inlineVolumeSpec.glusterfs.withEndpointsNamespace
withEndpointsNamespace(endpointsNamespace)
"endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"
fn inlineVolumeSpec.glusterfs.withPath
withPath(path)
"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"
fn inlineVolumeSpec.glusterfs.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"
obj inlineVolumeSpec.hostPath
"Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling."
fn inlineVolumeSpec.hostPath.withPath
withPath(path)
"path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"
fn inlineVolumeSpec.hostPath.withType
withType(type)
"type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"
obj inlineVolumeSpec.iscsi
"ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."
fn inlineVolumeSpec.iscsi.withChapAuthDiscovery
withChapAuthDiscovery(chapAuthDiscovery)
"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication"
fn inlineVolumeSpec.iscsi.withChapAuthSession
withChapAuthSession(chapAuthSession)
"chapAuthSession defines whether support iSCSI Session CHAP authentication"
fn inlineVolumeSpec.iscsi.withFsType
withFsType(fsType)
"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi"
fn inlineVolumeSpec.iscsi.withInitiatorName
withInitiatorName(initiatorName)
"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
fn inlineVolumeSpec.iscsi.withIqn
withIqn(iqn)
"iqn is Target iSCSI Qualified Name."
fn inlineVolumeSpec.iscsi.withIscsiInterface
withIscsiInterface(iscsiInterface)
"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp)."
fn inlineVolumeSpec.iscsi.withLun
withLun(lun)
"lun is iSCSI Target Lun number."
fn inlineVolumeSpec.iscsi.withPortals
withPortals(portals)
"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."
fn inlineVolumeSpec.iscsi.withPortalsMixin
withPortalsMixin(portals)
"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."
Note: This function appends passed data to existing values
fn inlineVolumeSpec.iscsi.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."
fn inlineVolumeSpec.iscsi.withTargetPortal
withTargetPortal(targetPortal)
"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."
obj inlineVolumeSpec.iscsi.secretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.iscsi.secretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.iscsi.secretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.local
"Local represents directly-attached storage with node affinity (Beta feature)"
fn inlineVolumeSpec.local.withFsType
withFsType(fsType)
"fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified."
fn inlineVolumeSpec.local.withPath
withPath(path)
"path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...)."
obj inlineVolumeSpec.nfs
"Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling."
fn inlineVolumeSpec.nfs.withPath
withPath(path)
"path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"
fn inlineVolumeSpec.nfs.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"
fn inlineVolumeSpec.nfs.withServer
withServer(server)
"server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"
obj inlineVolumeSpec.nodeAffinity
"VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from."
obj inlineVolumeSpec.nodeAffinity.required
"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."
fn inlineVolumeSpec.nodeAffinity.required.withNodeSelectorTerms
withNodeSelectorTerms(nodeSelectorTerms)
"Required. A list of node selector terms. The terms are ORed."
fn inlineVolumeSpec.nodeAffinity.required.withNodeSelectorTermsMixin
withNodeSelectorTermsMixin(nodeSelectorTerms)
"Required. A list of node selector terms. The terms are ORed."
Note: This function appends passed data to existing values
obj inlineVolumeSpec.photonPersistentDisk
"Represents a Photon Controller persistent disk resource."
fn inlineVolumeSpec.photonPersistentDisk.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\". Implicitly inferred to be \"ext4\" if unspecified."
fn inlineVolumeSpec.photonPersistentDisk.withPdID
withPdID(pdID)
"pdID is the ID that identifies Photon Controller persistent disk"
obj inlineVolumeSpec.portworxVolume
"PortworxVolumeSource represents a Portworx volume resource."
fn inlineVolumeSpec.portworxVolume.withFsType
withFsType(fsType)
"fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified."
fn inlineVolumeSpec.portworxVolume.withReadOnly
withReadOnly(readOnly)
"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
fn inlineVolumeSpec.portworxVolume.withVolumeID
withVolumeID(volumeID)
"volumeID uniquely identifies a Portworx volume"
obj inlineVolumeSpec.quobyte
"Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling."
fn inlineVolumeSpec.quobyte.withGroup
withGroup(group)
"group to map volume access to Default is no group"
fn inlineVolumeSpec.quobyte.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false."
fn inlineVolumeSpec.quobyte.withRegistry
withRegistry(registry)
"registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes"
fn inlineVolumeSpec.quobyte.withTenant
withTenant(tenant)
"tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin"
fn inlineVolumeSpec.quobyte.withUser
withUser(user)
"user to map volume access to Defaults to serivceaccount user"
fn inlineVolumeSpec.quobyte.withVolume
withVolume(volume)
"volume is a string that references an already created Quobyte volume by name."
obj inlineVolumeSpec.rbd
"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling."
fn inlineVolumeSpec.rbd.withFsType
withFsType(fsType)
"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd"
fn inlineVolumeSpec.rbd.withImage
withImage(image)
"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn inlineVolumeSpec.rbd.withKeyring
withKeyring(keyring)
"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn inlineVolumeSpec.rbd.withMonitors
withMonitors(monitors)
"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn inlineVolumeSpec.rbd.withMonitorsMixin
withMonitorsMixin(monitors)
"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
Note: This function appends passed data to existing values
fn inlineVolumeSpec.rbd.withPool
withPool(pool)
"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn inlineVolumeSpec.rbd.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn inlineVolumeSpec.rbd.withUser
withUser(user)
"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
obj inlineVolumeSpec.rbd.secretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.rbd.secretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.rbd.secretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.scaleIO
"ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume"
fn inlineVolumeSpec.scaleIO.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\". Default is \"xfs\
fn inlineVolumeSpec.scaleIO.withGateway
withGateway(gateway)
"gateway is the host address of the ScaleIO API Gateway."
fn inlineVolumeSpec.scaleIO.withProtectionDomain
withProtectionDomain(protectionDomain)
"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage."
fn inlineVolumeSpec.scaleIO.withReadOnly
withReadOnly(readOnly)
"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
fn inlineVolumeSpec.scaleIO.withSslEnabled
withSslEnabled(sslEnabled)
"sslEnabled is the flag to enable/disable SSL communication with Gateway, default false"
fn inlineVolumeSpec.scaleIO.withStorageMode
withStorageMode(storageMode)
"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned."
fn inlineVolumeSpec.scaleIO.withStoragePool
withStoragePool(storagePool)
"storagePool is the ScaleIO Storage Pool associated with the protection domain."
fn inlineVolumeSpec.scaleIO.withSystem
withSystem(system)
"system is the name of the storage system as configured in ScaleIO."
fn inlineVolumeSpec.scaleIO.withVolumeName
withVolumeName(volumeName)
"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source."
obj inlineVolumeSpec.scaleIO.secretRef
"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"
fn inlineVolumeSpec.scaleIO.secretRef.withName
withName(name)
"name is unique within a namespace to reference a secret resource."
fn inlineVolumeSpec.scaleIO.secretRef.withNamespace
withNamespace(namespace)
"namespace defines the space within which the secret name must be unique."
obj inlineVolumeSpec.storageos
"Represents a StorageOS persistent volume resource."
fn inlineVolumeSpec.storageos.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\". Implicitly inferred to be \"ext4\" if unspecified."
fn inlineVolumeSpec.storageos.withReadOnly
withReadOnly(readOnly)
"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
fn inlineVolumeSpec.storageos.withVolumeName
withVolumeName(volumeName)
"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace."
fn inlineVolumeSpec.storageos.withVolumeNamespace
withVolumeNamespace(volumeNamespace)
"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created."
obj inlineVolumeSpec.storageos.secretRef
"ObjectReference contains enough information to let you inspect or modify the referred object."
fn inlineVolumeSpec.storageos.secretRef.withApiVersion
withApiVersion(apiVersion)
"API version of the referent."
fn inlineVolumeSpec.storageos.secretRef.withFieldPath
withFieldPath(fieldPath)
"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."
fn inlineVolumeSpec.storageos.secretRef.withKind
withKind(kind)
"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
fn inlineVolumeSpec.storageos.secretRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn inlineVolumeSpec.storageos.secretRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
fn inlineVolumeSpec.storageos.secretRef.withResourceVersion
withResourceVersion(resourceVersion)
"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"
fn inlineVolumeSpec.storageos.secretRef.withUid
withUid(uid)
"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"
obj inlineVolumeSpec.vsphereVolume
"Represents a vSphere volume resource."
fn inlineVolumeSpec.vsphereVolume.withFsType
withFsType(fsType)
"fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
fn inlineVolumeSpec.vsphereVolume.withStoragePolicyID
withStoragePolicyID(storagePolicyID)
"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName."
fn inlineVolumeSpec.vsphereVolume.withStoragePolicyName
withStoragePolicyName(storagePolicyName)
"storagePolicyName is the storage Policy Based Management (SPBM) profile name."
fn inlineVolumeSpec.vsphereVolume.withVolumePath
withVolumePath(volumePath)
"volumePath is the path that identifies vSphere volume vmdk"