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 pod annotations propagating to namespace #13165

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Conversation

sfleen
Copy link
Contributor

@sfleen sfleen commented Oct 10, 2024

Currently, there's a bug with the jaeger injector where annotation overrides from a pod can propagate to any pod in the same namespace, provided they happen after the admission for the original pod occurs.

This fixes that by performing a deep copy of the namespace annotations, instead of editing the one in the local cache (which appears to have been unintentional).

Validated with a local deployment and checking that annotations are no longer propagated to unrelated pods.

Currently, there's a bug with the jaeger injector where annotation overrides from a pod can propagate to any pod in the same namespace, provided they happen after the admission for the original pod occurs.

This fixes that by performing a deep copy of the namespace annotations, instead of editing the one in the local cache (which appears to have been unintentional).

Validated with a local deployment and checking that annotations are no longer propagated to unrelated pods.

Signed-off-by: Scott Fleener <[email protected]>
Copy link
Member

@alpeb alpeb left a comment

Choose a reason for hiding this comment

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

Great find!

@alpeb alpeb merged commit 9abf76f into linkerd:main Oct 10, 2024
38 checks passed
@sfleen sfleen deleted the annotation branch October 10, 2024 14:09
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