-
Notifications
You must be signed in to change notification settings - Fork 617
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
Bug 1891552: Handle missing labels as empty #6940
Bug 1891552: Handle missing labels as empty #6940
Conversation
Hi @srueg. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1b5779c
to
d08f546
Compare
/assign @kyoto |
To implement the same logic as in AlertManager which handles missing labels as the empty label [1]. [1] https://github.com/prometheus/alertmanager/blob/a8ed0d58509d0251adcb159552b9ab098e206f1f/types/match.go#L72 Signed-off-by: Simon Rüegg <simon@rueggs.ch>
d08f546
to
7548e7f
Compare
Thank you for the PR @srueg! @simonpasquier Helped me confirm the issue and the code change looks good to me. I'd like to do some more testing first, then hopefully we can merge. |
/lgtm Tested locally and compared with Alertmanager behavior. Thanks again @srueg! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kyoto, srueg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cool, thanks for the quick handling! |
I have just reported: to include this fix downstream. |
/cherrypick release-4.6 |
@kyoto: new pull request created: #7002 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@srueg: All pull requests linked via external trackers have merged: Bugzilla bug 1891552 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retitle Bug 1891552: Handle missing labels as empty |
To implement the same logic as in AlertManager which handles missing
labels as the empty label [1].
[1] https://github.com/prometheus/alertmanager/blob/a8ed0d58509d0251adcb159552b9ab098e206f1f/types/match.go#L72
Solves https://access.redhat.com/support/cases/#/case/02776669