-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow port in HttpRoute parent_ref to be optional (#11107)
According to the [xRoutes Mesh Binding KEP](https://gateway-api.sigs.k8s.io/geps/gep-1426/#ports), the port in a parent reference is optional: > By default, a Service attachment applies to all ports in the service. Users may want to attach routes to only a specific port in a Service. To do so, the parentRef.port field should be used. > If port is set, the implementation MUST associate the route only with that port. If port is not set, the implementation MUST associate the route with all ports defined in the Service. However, we currently ignore any HttpRoutes which don't have a port specified in the parent ref. We update the policy controller to apply HttpRoutes which do not specify a port in the parent ref to all ports of the parent service. We do this by storing these "portless" HttpRoutes in the index and then copying these routes into every port-specific watch for that service. Signed-off-by: Alex Leong <[email protected]>
- Loading branch information
Showing
3 changed files
with
324 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.