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 linkerd-cni when using native sidecars #362

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

alpeb
Copy link
Member

@alpeb alpeb commented Apr 4, 2024

Fixes linkerd/linkerd2#12391

When the cni plugin is triggered, it validates that the proxy has been injected into the pod before setting up the iptables rules. It does so by looking for the "linkerd-proxy" container. However, when the proxy is injected as a native sidecar, it gets added as an init container, so it was being disregarded here.

We don't have integration tests for validating native sidecars when using linkerd-cni because Calico doesn't work in k3s since k8s 1.27, and we require k8s 1.29 for using native sidecars.
I did nevertheless successfully test this fix in an AKS cluster.

Fixes linkerd/linkerd2#11597

When the cni plugin is triggered, it validates that the proxy has been
injected into the pod before setting up the iptables rules. It does so
by looking for the "linkerd-proxy" container. However, when the proxy is
injected as a native sidecar, it gets added as an _init_ container, so
it was being disregarded here.

We don't have integration tests for validating native sidecars when
using linkerd-cni because [Calico doesn't work in k3s since k8s
1.27](k3d-io/k3d#1375), and we require k8s
1.29 for using native sidecars.
I did nevertheless successfully test this fix in an AKS cluster.
@mateiidavid mateiidavid merged commit 295008c into main Apr 16, 2024
14 checks passed
@mateiidavid mateiidavid deleted the alpeb/fix-native-sidecar branch April 16, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants