Skip to content
DocsTry Aspire
DocsTry

KubernetesPersistentVolumeResource.withVolumeAnnotation

Method
📦 Aspire.Hosting.Kubernetes v13.5.1-preview.1.26420.4
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: