forked from openstack-k8s-operators/mariadb-operator
-
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.
Allow intermediate replicas to ease operation
Currently the mariadb operator has webhooks to enforce the galera replica count to be either 1 or 3, which are the two supported deployments on the OpenstackControlPlane. However there is a need for more flexibility for day two operations, where it can be useful to allow scaling down replicas temporarily to e.g. 2 (for replacement procedure) or even 0 (to temporarily disable database management). Replace the kubebuilder annotations with minimum and maximum, and let the galera webhook warn about setting replicas to 2 (as it is not advisable to keep that setting for quorum concerns).
- Loading branch information
Showing
5 changed files
with
28 additions
and
12 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
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