KubernetesPersistentVolumeResource.WithVolumeAnnotation

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

Defined on

This method is defined on the following type: