linkerd2/controller/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
..
fake feat(policy): Configure outbound hostname labels in metrics (#13822) 2025-03-25 16:39:36 -07:00
metrics.go Enable gocritic linting (#7906) 2022-02-17 22:45:25 +00:00
webhook.go refactor(proxy-injector): make injection code take a value overrider as a parameter (#14037) 2025-05-23 15:30:58 -07:00
webhook_test.go refactor(proxy-injector): make injection code take a value overrider as a parameter (#14037) 2025-05-23 15:30:58 -07:00