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

Fix node filter to check etcd in-sync status properly #599

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

morimoto-cybozu
Copy link
Contributor

@morimoto-cybozu morimoto-cybozu commented Dec 28, 2022

The map cke.EtcdClusterStatus.InSyncMembers is filled by GetEtcdClusterStatus() in op/status.go.
It holds not only in-sync members but also not-in-sync members and its length is always equal to the length of cke.EtcdClusterStatus.Members.
This PR fixes a node filter for checking whether all etcd members are in-sync or not.
This PR also fixes the test of the CKE strategy by updating input data closer to the real.

Signed-off-by: morimoto-cybozu kenji_morimoto@cybozu.co.jp

Signed-off-by: morimoto-cybozu <kenji_morimoto@cybozu.co.jp>
Copy link
Contributor

@zeroalphat zeroalphat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morimoto-cybozu morimoto-cybozu merged commit 887baac into main Jan 18, 2023
@morimoto-cybozu morimoto-cybozu deleted the fix-etcd-insyncmembers branch January 18, 2023 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants