Skip to content

Commit fd8a0ad

Browse files
committed
fix(injector): improved support for native sidecar servers
(Extracted from #14566) This improves the injector logic by accounting for ports exposed in native sidecar containers: - when consuming the `config.linkerd.io/opaque-ports` annotations pointing to (named or integer) ports in init containers - when populating the proxy's `LINKERD2_PROXY_INBOUND_PORTS` env var The `webhook_tests.go` have been expanded to test injection to a pod with a memcached native sidecar container (never mind the contrivedness of the example).
1 parent 7af5437 commit fd8a0ad

File tree

6 files changed

+498
-4
lines changed

6 files changed

+498
-4
lines changed

controller/proxy-injector/fake/data/filter-pod-opaque-ports.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controller/proxy-injector/fake/data/filtered-pod-opaque-ports.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controller/proxy-injector/fake/data/pod-nativesidecar-inject-enabled.yaml

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)