Skip to content

Conversation

@alpeb
Copy link
Member

@alpeb alpeb commented Nov 28, 2025

(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).

(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).
@alpeb alpeb requested a review from a team as a code owner November 28, 2025 20:02
@alpeb alpeb force-pushed the alpeb/nativesidecar-injection-issues branch 2 times, most recently from a6c494c to fd8a0ad Compare December 2, 2025 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants