linkerd2/policy-controller
Alex Leong b981f52bcb
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 <alex@buoyant.io>
2023-07-19 16:07:32 -07:00
..
core Add support for HTTP filters in outbound policy (#11083) 2023-07-10 16:57:42 -07:00
grpc Add support for HTTP filters in outbound policy (#11083) 2023-07-10 16:57:42 -07:00
k8s Allow port in HttpRoute parent_ref to be optional (#11107) 2023-07-19 16:07:32 -07:00
src Policy controller watches gateway-api HttpRoutes (#11042) 2023-07-03 15:48:49 -07:00
.dockerignore Import the linkerd-policy-controller (#6485) 2021-08-11 12:56:12 -07:00
Cargo.toml Policy controller watches gateway-api HttpRoutes (#11042) 2023-07-03 15:48:49 -07:00
Dockerfile build(deps): bump linkerd/dev from 39 to 40 (#10825) 2023-05-09 10:57:19 -07:00