KubernetesPersistentVolumeResource.WithoutStorageClass

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
type KubernetesPersistentVolumeResource interface {
// ... 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

The same builder for chaining.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: