Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHosts ¶
func ComputeHosts(routeHostnames []gatewayapi_v1alpha2.Hostname, rawHostname *gatewayapi_v1alpha2.Hostname) ([]gatewayapi_v1alpha2.Hostname, []error)
ComputeHosts returns the set of hostnames to match for a route. Both the result and the error slice should be considered:
- if the set of hostnames is non-empty, it should be used for matching (may be ["*"]).
- if the set of hostnames is empty, there was no intersection between the listener hostname and the route hostnames, and the route should be marked "Accepted: false".
- if the list of errors is non-empty, one or more hostnames was syntactically invalid and some condition should be added to the route. This shouldn't be possible because of kubebuilder+admission webhook validation but we're being defensive here.
func IsValidHostname ¶
IsValidHostname validates that a given hostname is syntactically valid. It returns nil if valid and an error if not valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.