withGatewayAnnotation

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

Signature

methodwithGatewayAnnotationbuilder
Adds a Kubernetes metadata annotation to the generated Gateway resource.
withGatewayAnnotation(
key: string,
value: string): KubernetesGatewayResource
keystringThe annotation key.
valuestringThe annotation value.
KubernetesGatewayResource

Applies to

This method applies to the following types: