forked from intel/pmem-csi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
operator: revise deployment status API and operator reconcile loop
Revised the Deployment.Status to accommodate the deployment state conditions and driver state. Currently, Deployment has 3 conditions named CertsVerified, CertsReady, and DriverDeployed. It also records the summary of controller and node driver state, .i.e, no. of nodes the driver is running. In order to record real time status of the driver current had to rewrite the current reconcile loop. The existing reconcile loop was keen on the deployment CR changes and redeploy *only* the sub-objects that requires to redeploy. Instead the new reconcile logic *refresh* all the objects and CR status to keep the state consistent. The refresh chooses to merge patching the objects to avoid all unnecessary updates. There are two reconcile entry points: - CR reconcile loop: refreshes all the sub-objects and CR status - sub-object vent handler: redeploy only the deleted/changed resource and updates CR status if required. This also includes other code cleanups that come across. TODOs: - E2E tests for validating if the operator restores the state of a broken deployment - i.e, recovering deleted/modified sub-objects. FIXES: intel#611
- Loading branch information
Showing
4 changed files
with
1,182 additions
and
632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.