KubernetesIngressResource.WithHostname
Method
type KubernetesIngressResource interface { // ... omitted for brevity WithHostname(hostname string) KubernetesIngressResource}Signature
method
WithHostname builderAdds a hostname that this ingress matches. Multiple hostnames can be added by calling this method repeatedly. Path rules without an explicit host apply to each configured hostname. If no hostnames are configured, those rules match all hosts.
WithHostname(hostname string) KubernetesIngressResourceParameters
hostnamestringThe hostname to match (e.g., "api.example.com" ).Returns
KubernetesIngressResource The resource builder.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: