WithIngressPath
Method
func (KubernetesIngressResource) WithIngressPath( path string, endpoint EndpointReference, options ...*WithIngressPathOptions,) KubernetesIngressResourceSignature
method
WithIngressPath builderAdds a path-based rule to the ingress. The rule matches each hostname configured with
WithHostname , or all hosts when no hostname is configured, and forwards matching traffic to the endpoint's backing Kubernetes service.WithIngressPath( path string, endpoint EndpointReference, options ...*WithIngressPathOptions,) KubernetesIngressResourceParameters
pathstringThe URL path to match (e.g., "/" or "/api"). Must start with /.endpointEndpointReference The endpoint reference identifying the target service and port.options...*WithIngressPathOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithIngressPathOptions 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: