-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the condition transition rules (#129)
When the cluster is initializing, either a quorum has not yet been established, so if the sts isn't ready, we don't change the reason for etcd not ready, or the cluster has initialized, so we set the status based on the sts state. This reduces the amount of nesting and repeated code in the condition/reason checks.
- Loading branch information
Showing
1 changed file
with
18 additions
and
22 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