Skip to content
DocsTry Aspire
DocsTry

withGatewayAnnotation

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