WithIngressHostAndPath
Method
func (KubernetesIngressResource) WithIngressHostAndPath( host string, path string, endpoint EndpointReference, options ...*WithIngressHostAndPathOptions,) KubernetesIngressResourceSignature
method
WithIngressHostAndPath builderAdds a host-scoped path rule to the ingress. The rule matches traffic for the specified host and path, forwarding it to the given endpoint's backing Kubernetes service.
WithIngressHostAndPath( host string, path string, endpoint EndpointReference, options ...*WithIngressHostAndPathOptions,) KubernetesIngressResourceParameters
hoststringThe hostname to match (e.g., "api.example.com" ).pathstringThe URL path to match (e.g., "/" or "/api"). Must start with /.endpointEndpointReference The endpoint reference identifying the target service and port.options...*WithIngressHostAndPathOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithIngressHostAndPathOptions argument.
PathType *IngressPathType The path matching strategy. Defaults to Prefix.Returns
KubernetesIngressResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: