Skip to content

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 <[email protected]>
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 <[email protected]>
@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
@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