withStorageClass
Method
interface KubernetesPersistentVolumeResource { // ... omitted for brevity withStorageClass(storageClassName: string): KubernetesPersistentVolumeResource;}Signature
method
withStorageClassbuilderSets the storage class for a persistent volume
withStorageClass(storageClassName: string): KubernetesPersistentVolumeResourceParameters
storageClassNamestringReturns
KubernetesPersistentVolumeResourceApplies to
This method applies to the following types: