linkerd2/policy-controller/grpc
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
..
src refactor(policy): generalize route types in outbound index (#12664) 2024-06-05 10:38:46 -07:00
Cargo.toml refactor(policy): generalize route types in outbound index (#12664) 2024-06-05 10:38:46 -07:00