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

gotk_reconcile_condition not being marked as Deleted for Alert #383

Closed
julienduchesne opened this issue Jun 14, 2022 · 2 comments · Fixed by #416
Closed

gotk_reconcile_condition not being marked as Deleted for Alert #383

julienduchesne opened this issue Jun 14, 2022 · 2 comments · Fixed by #416
Labels
bug Something isn't working
Milestone

Comments

@julienduchesne
Copy link

julienduchesne commented Jun 14, 2022

Version: 0.23.4 and 0.24.0

We deleted an Alert resource (renamed it) and instead of being marked as "Deleted", it is being marked as not Ready. This has happened across two clusters (and two different Flux versions)

Here's what the metrics look like for that resource:

gotk_reconcile_condition{..., status="Deleted", type="Ready"} | 0
gotk_reconcile_condition{..., status="False", type="Ready"} | 1
gotk_reconcile_condition{..., status="True", type="Ready"} | 0
gotk_reconcile_condition{..., status="Unknown", type="Ready"} | 0

These metrics trigger the alert defined here: https://github.com/fluxcd-community/flux-mixin/blob/main/alerts/flux-alert.libsonnet#L8-L20

I have confirmed that the alert is deleted. Restarting the notification-controller fixes the issue

@Alan01252
Copy link
Contributor

Thank you! We were seeing this too and can confirm restarting the notification controller resolve the alert.

@pjbgf pjbgf added the bug Something isn't working label Aug 25, 2022
@stefanprodan
Copy link
Member

We need to add finalizers to all the notification CRDs to be able to block the deleting, then set the metric, and finally free the object to allow Kubernetes to purge it. Adding finalizers will break flux uninstall so we also need to remove them with the CLI like we're doing for other CRs.

@pjbgf pjbgf added this to the GA milestone Aug 26, 2022
@stefanprodan stefanprodan moved this to Since Last Dev Meeting in Maintainers' Focus Sep 9, 2022
@kingdonb kingdonb moved this from Since Last Dev Meeting to Done in Maintainers' Focus Sep 22, 2022
@stefanprodan stefanprodan modified the milestones: GA, Bootstrap GA Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants