KubernetesPersistentVolumeResource.WithoutStorageClass
Method
type KubernetesPersistentVolumeResource interface { // ... 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 The same builder for chaining.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: