KubernetesManifestResource.withAnnotation

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
interface KubernetesManifestResource {
// ... omitted for brevity
withAnnotation(
key: string,
value: string): KubernetesManifestResource;
}

Signature

methodwithAnnotation
Adds or updates a Kubernetes annotation on this manifest.
withAnnotation(
key: string,
value: string): KubernetesManifestResource
keystringThe annotation key.
valuestringThe annotation value.
KubernetesManifestResource

Defined on

This method is defined on the following type: