Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithVolumeAnnotation

Method
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7
func (KubernetesPersistentVolumeResource) WithVolumeAnnotation(
key string,
value string,
) KubernetesPersistentVolumeResource

Signature

methodWithVolumeAnnotationbuilder
Adds a Kubernetes metadata annotation to a persistent volume
WithVolumeAnnotation(
key string,
value string,
) KubernetesPersistentVolumeResource
keystringThe annotation key (e.g. "volume.beta.kubernetes.io/storage-provisioner").
valuestringThe annotation value.
KubernetesPersistentVolumeResource

The same builder for chaining.

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

Applies to

This method applies to the following types: