linkerd2/policy-controller/k8s/index/src
Mark S d734df020f
refactor(policy): generalize route types in outbound index (#12664)
## Subject

Prepare to expand the subset of [`Gateway API`](https://gateway-api.sigs.k8s.io/api-types/grpcroute/) route types `linkerd` supports driving outbound traffic with in [`linkerd-policy-controller-k8s-index`](https://github.com/linkerd/linkerd2/tree/main/policy-controller/k8s/status).


## Problem

Currently, the policy controller's `index` component is written with `HTTPRoute` support (effectively) exclusively, both in its structure/organization as well as its naming (e.g. `HttpRoute` as a primary type name, `convert_http_route` as a method name, etc...).

In order to expand the subset of route types defined by the Gateway API that `linkerd` supports for driving outbound traffic policy, the policy controller's `index` component needs to be made more generic in both respects.


## Solution

PR introduces structural and naming changes making the codebase generic with respect to the type of route being handled (e.g. `HTTPRoute` -> `Route`). Changes are largely cosmetic, with no _behavioral_ changes introduced by any functional refactoring.

Signed-off-by: Mark S <the@wondersmith.dev>
2024-06-05 10:38:46 -07:00
..
inbound refactor(policy): generalize route types in outbound index (#12664) 2024-06-05 10:38:46 -07:00
outbound refactor(policy): generalize route types in outbound index (#12664) 2024-06-05 10:38:46 -07:00
routes refactor(policy): generalize route types in outbound index (#12664) 2024-06-05 10:38:46 -07:00
cluster_info.rs Modularize policy controller (#10524) 2023-03-15 16:42:57 -07:00
defaults.rs Modularize policy controller (#10524) 2023-03-15 16:42:57 -07:00
inbound.rs Add inbound policy index metrics (#12356) 2024-05-08 11:02:58 -07:00
lib.rs refactor(policy): generalize route types in outbound index (#12664) 2024-06-05 10:38:46 -07:00
outbound.rs Reindex outbound policy backends when a service changes (#12635) 2024-05-23 14:10:00 -07:00
ports.rs Modularize policy controller (#10524) 2023-03-15 16:42:57 -07:00
routes.rs refactor(policy): generalize route types in outbound index (#12664) 2024-06-05 10:38:46 -07:00