WithHostname
Method
func (KubernetesIngressResource) WithHostname(hostname string) KubernetesIngressResourceSignature
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().
Applies to
This method applies to the following types: