withoutStorageClass

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
interface KubernetesPersistentVolumeResource {
// ... omitted for brevity
withoutStorageClass(): KubernetesPersistentVolumeResource;
}

Signature

methodwithoutStorageClassbuilder
Omits `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(): KubernetesPersistentVolumeResource
KubernetesPersistentVolumeResource

Applies to

This method applies to the following types: