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

Add finalizers to ImagePolicy and ImageRepository resources #266

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

kaden-l-nelson
Copy link
Contributor

Fixes #225

This PR adds a finalizer to the ImagePolicy and ImageRepository resources. This is to properly record the Deleted reconciliation status when the object is deleted from the cluster. Without this change, the resource would be deleted before the image reflector controller has a chance to properly report the resource's status in the metrics. As a result, end-users may see falsely reported metrics.

Signed-off-by: Kaden Nelson [email protected]

@kgamanji
Copy link

@stefanprodan I had some community folks query about this PR. Do you by any chance have any visibility into it or is it on someone else’s radar?

Fixes fluxcd#225

This PR adds a finalizer to the ImagePolicy and ImageRepository resources. This is to properly record the Deleted reconciliation status when the object is deleted from the cluster. Without this change, the resource would be deleted before the image reflector controller has a chance to properly report the resource's status in the metrics. As a result, end-users may see falsely reported metrics.

Signed-off-by: Kaden Nelson <[email protected]>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @kaden-l-nelson 🏅

@stefanprodan stefanprodan merged commit 5c1b128 into fluxcd:main Jun 24, 2022
@stefanprodan stefanprodan changed the title Add a finalizer to the ImagePolicy and ImageRepository resources Add finalizers to ImagePolicy and ImageRepository resources Jun 24, 2022
@kaden-l-nelson kaden-l-nelson deleted the patch/finalizer branch June 24, 2022 10:48
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.

Deleted ImagePolicies and ImageRepositories gotk_reconcile_condition values are incoherent
3 participants