KubernetesGatewayResource.WithHostname
Method
type KubernetesGatewayResource interface { // ... omitted for brevity WithHostname(hostname string) KubernetesGatewayResource}Signature
method
WithHostname builderAdds a hostname that this gateway's routes match. Multiple hostnames can be added by calling this method repeatedly. Routes without an explicit host apply to each configured hostname. Hostnames are used as
hostnames in generated HTTPRoute resources and as HTTPS listener hostnames when TLS is configured.WithHostname(hostname string) KubernetesGatewayResourceParameters
hostnamestringThe hostname to match (e.g., "api.example.com" ).Returns
KubernetesGatewayResource The resource builder.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: