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 log annotation and label assignment #1222

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

petewall
Copy link
Collaborator

@petewall petewall commented Feb 10, 2025

Before, it was using the implicit (.*) regex, which means it would unset labels if the annotation was not defined.
Because we have k8s.grafana.com/logs.job ==> job, it means we always removed the job label.

Added an integration test to validate the change (it reproduced the failure initially)

@petewall petewall self-assigned this Feb 10, 2025
@petewall petewall requested review from a team and rlankfo as code owners February 10, 2025 16:15
@petewall petewall linked an issue Feb 10, 2025 that may be closed by this pull request
@petewall petewall force-pushed the fix/pod-log-annotations-and-labels branch from b62bf57 to 6b09da9 Compare February 10, 2025 16:25
@petewall petewall merged commit c2ba369 into main Feb 10, 2025
36 checks passed
@petewall petewall deleted the fix/pod-log-annotations-and-labels branch February 10, 2025 16:40
@stefanandres
Copy link
Contributor

Thanks for the quick fix! 🙂

bentonam pushed a commit that referenced this pull request Feb 11, 2025
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.

k8s-monitoring v2.0.7 broke the pod job label
3 participants