linkerd2/controller/cmd/proxy-injector
Alex Leong db495d6765
refactor(proxy-injector): make injection code take a value overrider as a parameter (#14037)
In order to make the way that proxy injector patches more flexible, we adjust the method signature of `ResourceConfig.GetPodPatch` to accept a `ValueOverrider`.  The type of `ValueOverrider` is:

```
func(values *l5dcharts.Values, overrides map[string]string, namedPorts map[string]int32) (*l5dcharts.Values, error)
``` 

and specifies how overrides (in the form of pod and namespace annotations) get translated into values for the proxy patch template.

The current override behavior, specified in `GetOverriddenValues`, is supplied in all cases, making this a refactor with no functional changes.

Signed-off-by: Alex Leong <alex@buoyant.io>
2025-05-23 15:30:58 -07:00
..
main.go refactor(proxy-injector): make injection code take a value overrider as a parameter (#14037) 2025-05-23 15:30:58 -07:00