generated from siderolabs/project-template-kubernetes-controller
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not allow scaling down controlplane to zero
Doing that is pretty pointless as it's going to destroy a cluster. Instead of doing that cluster should be deleted and recreated. And with the new approach without init nodes scaling cluster back up won't be able to succeed as bootstrap is done only a single time. Still allowing user to set replicas to zero, but block scaling in the controller with error messages when there's only a single node remaining. Signed-off-by: Artem Chernyshev <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 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