withoutStorageClass
Method
interface KubernetesPersistentVolumeResource { // ... omitted for brevity withoutStorageClass(): KubernetesPersistentVolumeResource;}Signature
method
withoutStorageClass builderOmits `spec.storageClassName` from the generated PVC so Kubernetes can assign the cluster's default StorageClass. To request a classless volume, call `WithStorageClass` with an empty string.
withoutStorageClass(): KubernetesPersistentVolumeResourceReturns
KubernetesPersistentVolumeResource Applies to
This method applies to the following types: