KubernetesPersistentVolumeResource
Handle
interface KubernetesPersistentVolumeResource extends IResource, IResourceWithParent, KubernetesEnvironmentResource]] { withAccessMode(accessMode: PersistentVolumeAccessMode): KubernetesPersistentVolumeResource; withCapacity(capacity: string): KubernetesPersistentVolumeResource; withCapacityParam(capacity: ParameterResource): KubernetesPersistentVolumeResource; withStorageClass(storageClassName: string): KubernetesPersistentVolumeResource; withStorageClassParam(storageClassName: ParameterResource): KubernetesPersistentVolumeResource; withVolumeAnnotation( key: string, value: string): KubernetesPersistentVolumeResource; withVolumeAnnotationParam( key: string, value: ParameterResource): KubernetesPersistentVolumeResource;}7 members
Methods
Adds an access mode to a persistent volume
withAccessMode(accessMode: PersistentVolumeAccessMode): KubernetesPersistentVolumeResourceParameters
accessMode PersistentVolumeAccessMode The access mode to add.Returns
KubernetesPersistentVolumeResource Sets the requested storage capacity for a persistent volume
withCapacity(capacity: string): KubernetesPersistentVolumeResourceParameters
capacitystringA Kubernetes quantity string (e.g. `"10Gi"`, `"500Mi"`).Returns
KubernetesPersistentVolumeResource Sets a parameterized storage capacity for a persistent volume
withCapacityParam(capacity: ParameterResource): KubernetesPersistentVolumeResourceParameters
capacityParameterResource A parameter resource builder for the capacity quantity string.Returns
KubernetesPersistentVolumeResource Sets the storage class for a persistent volume
withStorageClass(storageClassName: string): KubernetesPersistentVolumeResourceParameters
storageClassName stringThe storage class name (e.g. `"managed-csi"`, `"gp3"`).Returns
KubernetesPersistentVolumeResource Sets a parameterized storage class for a persistent volume
withStorageClassParam(storageClassName: ParameterResource): KubernetesPersistentVolumeResourceParameters
storageClassName ParameterResource A parameter resource builder for the storage class name.Returns
KubernetesPersistentVolumeResource Adds a Kubernetes metadata annotation to a persistent volume
withVolumeAnnotation( key: string, value: string): KubernetesPersistentVolumeResourceParameters
keystringThe annotation key (e.g. `"volume.beta.kubernetes.io/storage-provisioner"`).valuestringThe annotation value.Returns
KubernetesPersistentVolumeResource Adds a parameterized Kubernetes metadata annotation to a persistent volume
withVolumeAnnotationParam( key: string, value: ParameterResource): KubernetesPersistentVolumeResourceParameters
keystringThe annotation key.valueParameterResource A parameter resource builder for the annotation value.Returns
KubernetesPersistentVolumeResource