-
Notifications
You must be signed in to change notification settings - Fork 546
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 1822396: Delete subscription metric when an operator is uninstalled #1519
Bug 1822396: Delete subscription metric when an operator is uninstalled #1519
Conversation
@anik120: This pull request references Bugzilla bug 1822396, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this @anik120 - I have a few nits.
"reconciling": fmt.Sprintf("%T", res), | ||
"selflink": res.GetSelfLink(), | ||
"reconciling": fmt.Sprintf("%T", subs), | ||
"selflink": subs.GetSelfLink(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL that this is a Human readable alternative to UID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, selflink is deprecated now.
5eaf92a
to
2f2cdf6
Compare
2f2cdf6
to
b3025a7
Compare
0c33430
to
1240be1
Compare
1240be1
to
1440311
Compare
de728d3
to
9b56643
Compare
9b56643
to
ece5805
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/test e2e-aws-olm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anik120, njhale 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 |
/test e2e-aws-olm |
2 similar comments
/test e2e-aws-olm |
/test e2e-aws-olm |
/retest Please review the full test history for this PR and help us cut down flakes. |
9 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@anik120: All pull requests linked via external trackers have merged: operator-framework/operator-lifecycle-manager#1519. Bugzilla bug 1822396 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. |
/cherry-pick release-4.5 |
@anik120: #1519 failed to apply on top of branch "release-4.5":
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. |
…pdated In operator-framework#1519, the subscription_sync_total metric was updated when the related subscription object was updated. However, the PR had a bug, in which the map used to store metric related information was not being updated when the metric was udpated. As a result of which any update after the first update was not removing the old metric. This PR fixes that bug.
In operator-framework#1519, the subscription_sync_total metric was updated when the related subscription object was updated. However, the PR had a bug, in which the map used to store metric related information was not being updated when the metric was udpated. As a result of which any update after the first update was not removing the old metric. This PR fixes that bug.
In operator-framework#1519, the subscription_sync_total metric was updated when the related subscription object was updated. However, the PR had a bug, in which the map used to store metric related information was not being updated when the metric was udpated. As a result of which any update after the first update was not removing the old metric. This PR fixes that bug.
In operator-framework#1519, the subscription_sync_total metric was updated when the related subscription object was updated. However, the PR had a bug, in which the map used to store metric related information was not being updated when the metric was udpated. As a result of which any update after the first update was not removing the old metric. This PR fixes that bug.
In operator-framework#1519, the subscription_sync_total metric was updated when the related subscription object was updated. However, the PR had a bug, in which the map used to store metric related information was not being updated when the metric was udpated. As a result of which any update after the first update was not removing the old metric. This PR fixes that bug.
When an operator was subscribed to using a Subscription Object, the subscription_sync_total
metric was emitted whenever the Subscription Object was created/updated/deleted. This PR
updates that behaviour to emit the metric only when the Subscription object is created/updated,
and deletes the time series for that particular subscription when the subscription object is
deleted.
Description of the change:
Motivation for the change:
Reviewer Checklist
/docs