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

Improve reconciler handlers to prevent early reconcilation #176

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

addyess
Copy link
Member

@addyess addyess commented Jul 29, 2024

Overview

Addresses LP#2074388 by getting to the heart of the issue -- this charm wasn't protecting against early reconciliation. It was too permissive in the handler checks.

Details

The reconciler pattern hinges on completing all its handlers without a reconciler error being raised. The easiest way to stop the reconciler is therefore to raise an error, and let the next hook determine the charm's actions.
This charm was being too permissive about passing over situations the charm was in that it knew it couldn't progress pass - ultimately it lead to a failure to detect a downed api on the kubernetes-control-plane.

These adjustments attempt to tighten the feedback in the reconciler loop, exit early, and prevent early reconciliation.

@addyess addyess force-pushed the bug/2074388/improved-reconciler-handlers branch from ef2b1b8 to 46e6178 Compare August 22, 2024 21:34
@addyess addyess force-pushed the bug/2074388/improved-reconciler-handlers branch from 6491455 to bd2f8a4 Compare August 23, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant