Commit fd8a0ad
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- controller/proxy-injector
- fake/data
- pkg/inject
6 files changed
+498
-4
lines changedLines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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