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

runtime/reconcile: Fix Ready check in Finalizer #511

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

darkowlzz
Copy link
Contributor

@darkowlzz darkowlzz commented Mar 14, 2023

Fix the Ready condition check in the ResultFinalizer. IsReady() takes into account the Reconciling and Stalling conditons too. Use IsTrue() to precisely check if Ready=True.

This ensures that Ready=True is toggled when there's a reconciliation error in presence or other negative conditions.

This is needed to fix the issue in fluxcd/image-reflector-controller#356.

Fix the Ready condition check in the ResultFinalizer.
`IsReady()` takes into account the Reconciling and Stalling conditons
too. Use `IsTrue()` to precisely check if Ready=True.

This ensure that Ready=True is toggled when there's a reconciliation
error in presence or other negative conditions.

Signed-off-by: Sunny <[email protected]>
@darkowlzz darkowlzz added the area/runtime Controller runtime related issues and pull requests label Mar 14, 2023
@darkowlzz darkowlzz merged commit 6805701 into main Mar 14, 2023
@darkowlzz darkowlzz deleted the result-finalize-ready-check branch March 14, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/runtime Controller runtime related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants