linkerd2/controller/proxy-injector
Alejandro Pedraza a4e35b7cc8
Set `LINKERD2_PROXY_INBOUND_PORTS` during injection (#6445)
* Set `LINKERD2_PROXY_INBOUND_PORTS` during injection

Fixes #6267

The `LINKERD2_PROXY_INBOUND_PORTS` env var will be set during injection,
containing a comma-separated list of the ports in the non-proxy containers in
the pod. For the identity, destination and injector pods, the var is set
manually in their Helm templates.

Since the proxy-injector isn't reinvoked, containers injected by a mutating
webhook after the injector has run won't be detected. As an escape hatch, the
`config.linkerd.io/pod-inbound-ports` annotation has been added to explicit
overrides.

Other changes:

- Removed
`controller/proxy-injector/fake/data/inject-sidecar-container-spec.yaml` which
is no longer used.  - Fixed bad indentation in some fixture files under
`controller/proxy-injector/fake/data`.
2021-07-09 11:52:20 -05:00
..
fake Set `LINKERD2_PROXY_INBOUND_PORTS` during injection (#6445) 2021-07-09 11:52:20 -05:00
metrics.go Update Injection to use new linkerd-config.values (#5036) 2020-10-07 09:54:34 -07:00
webhook.go Add ns annotation inheritance to pods (#6002) (#6002) 2021-04-20 22:25:02 -04:00
webhook_test.go Add ns annotation inheritance to pods (#6002) (#6002) 2021-04-20 22:25:02 -04:00