WithPersistentVolumeName

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
func (KubernetesPersistentVolumeResource) WithPersistentVolumeName(persistentVolumeName string) KubernetesPersistentVolumeResource

Signature

methodWithPersistentVolumeNamebuilder
Sets the name of the existing PersistentVolume to bind to in the generated PVC's spec.volumeName.
WithPersistentVolumeName(persistentVolumeName string) KubernetesPersistentVolumeResource
persistentVolumeNamestringThe name of the existing PersistentVolume.
KubernetesPersistentVolumeResource

The same builder for chaining.

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

Applies to

This method applies to the following types: