Watch Aspire live streamsDocsTry Aspire

KubernetesPersistentVolumeResource.withVolumeAnnotation

Method
📦 Aspire.Hosting.Kubernetes v13.6.0-preview.1.26478.8
interface KubernetesPersistentVolumeResource {
// ... 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
keystring
valuestring
KubernetesPersistentVolumeResource

Defined on

This method is defined on the following type: