Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with native sidecars #12453

Merged
merged 7 commits into from
Apr 26, 2024
Merged

Fix issues with native sidecars #12453

merged 7 commits into from
Apr 26, 2024

Conversation

alpeb
Copy link
Member

@alpeb alpeb commented Apr 17, 2024

Closes #12395

Failing to iterate over init containers as well as regular containers for finding the proxy in various parts of the code when the proxy is injected as a native sidecar resulted in:

  • Get Destination API failing in the presence of opaque ports
  • Failure having the injector detecting already injected pods
  • Various CLI issues

This PR is split into the following commits addressing each issue separately:

a8ebe76 - Fix injection check for existing sidecars
44e9625 - Fix 'linkerd uninject'
6269496 - Fix 'linkerd version --proxy'
42dbdad - Fix 'linkerd identity'
39db823 - Fix 'linkerd check'
7359f37 - Fix 'linkerd dg proxy-metrics'
f8f73c4 - Fix destination controller

@alpeb alpeb requested a review from a team as a code owner April 17, 2024 17:28
Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The destination controller errors feel like the biggest impact of these problems. Can we add a test for that?

@alpeb alpeb force-pushed the alpeb/native-sidecar-fixups branch from 5f196b4 to a8ebe76 Compare April 23, 2024 20:05
@alpeb
Copy link
Member Author

alpeb commented Apr 23, 2024

Sure, I've added a new unit test to f8f73c4, failing as described in #12395 before this fix.

@alpeb alpeb merged commit 6db4bd6 into main Apr 26, 2024
39 checks passed
@alpeb alpeb deleted the alpeb/native-sidecar-fixups branch April 26, 2024 19:38
the-wondersmith pushed a commit to the-wondersmith/linkerd2 that referenced this pull request Apr 27, 2024
Closes linkerd#12395

Failing to iterate over init containers as well as regular containers for finding the proxy in various parts of the code when the proxy is injected as a native sidecar resulted in:

- `Get` Destination API failing in the presence of opaque ports
- Failure having the injector detecting already injected pods
- Various CLI issues

This PR is split into the following commits addressing each issue separately:

a8ebe76 - Fix injection check for existing sidecars
44e9625 - Fix 'linkerd uninject'
6269496 - Fix 'linkerd version --proxy'
42dbdad - Fix 'linkerd identity'
39db823 - Fix 'linkerd check'
7359f37 - Fix 'linkerd dg proxy-metrics'
f8f73c4 - Fix destination controller

Signed-off-by: Mark S <the@wondersmith.dev>
the-wondersmith pushed a commit to the-wondersmith/linkerd2 that referenced this pull request Apr 29, 2024
Closes linkerd#12395

Failing to iterate over init containers as well as regular containers for finding the proxy in various parts of the code when the proxy is injected as a native sidecar resulted in:

- `Get` Destination API failing in the presence of opaque ports
- Failure having the injector detecting already injected pods
- Various CLI issues

This PR is split into the following commits addressing each issue separately:

a8ebe76 - Fix injection check for existing sidecars
44e9625 - Fix 'linkerd uninject'
6269496 - Fix 'linkerd version --proxy'
42dbdad - Fix 'linkerd identity'
39db823 - Fix 'linkerd check'
7359f37 - Fix 'linkerd dg proxy-metrics'
f8f73c4 - Fix destination controller

Signed-off-by: Mark S <the@wondersmith.dev>
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.

Issues with the native sidecar container
2 participants