-
Notifications
You must be signed in to change notification settings - Fork 105
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 MR state metrics when MRs are deleted #688
Conversation
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.
Thank you @ezgidemirel 🙏 LGTM.
@ezgidemirel Two other small nits I noticed that aren't related to this PR specifically. It's fine to address them separately:
|
Signed-off-by: ezgidemirel <[email protected]>
To access the
Removed the parameter and accessing the struct field in the |
@ezgidemirel we already cut the release-1.16 branch, do you want to backport this PR so that it is included in the v1.16 release? |
@jbw976 yes, we can backport it. |
Successfully created backport PR for |
Description of your changes
In case of deleting all MRs from a GVK, we should record 0 for
crossplane_managed_resource_exists
,crossplane_managed_resource_ready
andcrossplane_managed_resource_synced
metrics.Fixes #
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
Tested with provider-kubernetes