Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify the condition transition rules #129

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

lllamnyp
Copy link
Collaborator

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.

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.
@sircthulhu sircthulhu added the enhancement New feature or request label Apr 10, 2024
@sergeyshevch sergeyshevch merged commit 7c5d2d1 into main Apr 10, 2024
9 checks passed
@sergeyshevch sergeyshevch deleted the chore/refactor-first-quorum-nested-ifs branch April 10, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants