Skip to content
DocsTry Aspire
DocsTry

withGatewayAnnotation

Method
📦 Aspire.Hosting.Kubernetes v13.5.3-preview.1.26425.3
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
keystring
valuestring
KubernetesGatewayResource

Applies to

This method applies to the following types: