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

Update conditions behavior after error #35

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

OchiengEd
Copy link
Contributor

Description of the change:

Given it is possible for a custom resource to be in error / failed state while a new reconcile process is ongoing, it is unnecessary to mark the status of previous Failure conditions to False while the reconcile loop is still running.

The failure condition will be removed when the custom resource is successfully deployed as it works today.

Motivation for the change:

The failure conditions have timestamps and are accurate as at the time of reporting. Therefore, it would be unnecessary and misleading to set the failure condition status to False before the custom resource is successfully deployed.

Signed-off-by: Edmund Ochieng <ochienged@gmail.com>
Previous failure condition status is set to false when subsequent reconcile begins.
This is unnecessary since the conditions are true at the time of
reporting.

The failure condition can however, be reset when reconcile
completes successfully.

Signed-off-by: Edmund Ochieng <ochienged@gmail.com>
@OchiengEd OchiengEd changed the title Update conditions post error Update conditions behavior after error Oct 11, 2023
@OchiengEd OchiengEd merged commit cbc2d46 into operator-framework:main Oct 13, 2023
5 checks passed
@OchiengEd OchiengEd deleted the update_conditions branch October 13, 2023 20:43
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.

2 participants