-
Notifications
You must be signed in to change notification settings - Fork 72
No Coords #339
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
No Coords #339
Conversation
…is in strange phase but there is no plan, fail it.
ewoutp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questions & comments
| allMembersReady := status.Members.AllMembersReady(spec.GetMode(), spec.Sync.IsEnabled()) | ||
| status.Conditions.Update(api.ConditionTypeReady, allMembersReady, "", "") | ||
|
|
||
| if status.Members.Coordinators.AllFailed() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This expression seems to "soon".
Shouldn't it given the coordinators some time first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they are failed, the operator will create a member replacement plan anyways. However, if all are failed, the execution of the plan will always fail because it can not connect to the cluster. So no, if all coordinators are failed, there is nothing we can do.
neunhoef
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Delete all coordinator pods if all coordinators are failed. If a pod is in strange phase but there is no plan, view it as failed.