Skip to content
Docs Try Aspire
Docs Try

withGatewayAnnotation

Method
📦 Aspire.Hosting.Kubernetes v13.4.0-preview.1.26281.18
interface KubernetesGatewayResource {
// ... omitted for brevity
withGatewayAnnotation(
key: string,
value: string): KubernetesGatewayResource;
}

Signature

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

Applies to

This method applies to the following types: