Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithGatewayClass

Method
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7
func (KubernetesGatewayResource) WithGatewayClass(className string) KubernetesGatewayResource

Signature

methodWithGatewayClassbuilder
Sets the GatewayClass name that selects which controller implementation handles this gateway.
WithGatewayClass(className string) KubernetesGatewayResource
classNamestringThe GatewayClass name (e.g., "azure-alb-external", "istio").
KubernetesGatewayResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: