-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Online image change: handling of the standby subcluster (#127)
This is another PR for online-upgrade. It will handle creation and removal of the standby subcluster during the online-image change process. - new state was added to the vapi.Subcluster for this. Originally, I was planning to keep most of this in the SubclusterHandle struct, but we already pass around vapi.Subcluster so it made it easier to have it their - new status conditions for offline and online image change. These are intended to be used by the operator to know what image change to continue with once an image change has started - filled out more of the logic in onlineimagechange_reconciler.go. It will scale-out a new standby subcluster for each primary, then scale them down when we are finishing the image change. - moved more logic into imagechange.go that is common between online and offline image change - restart logic was changed to allow option to restart read-only nodes. When restarting for online, we will skip the read-only modes. Offline restarts everything.
- Loading branch information
spilchen
authored
Dec 16, 2021
1 parent
2233a9f
commit c761ce2
Showing
18 changed files
with
797 additions
and
202 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
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
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
Oops, something went wrong.