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

Stop reconciliation and clustering #578

Merged
merged 16 commits into from
Dec 6, 2023
Merged

Stop reconciliation and clustering #578

merged 16 commits into from
Dec 6, 2023

Conversation

d-kuro
Copy link
Contributor

@d-kuro d-kuro commented Oct 11, 2023

refs:
#572
#564

Add the enhancement to stop clustering and reconciling MySQLCluster based on the following design document.
https://github.com/cybozu-go/moco/blob/main/docs/designdoc/clustering_stop.md

@d-kuro d-kuro self-assigned this Oct 11, 2023
@d-kuro d-kuro force-pushed the d-kuro/stop branch 3 times, most recently from 2025656 to 22ca4f7 Compare October 25, 2023 04:11
@d-kuro d-kuro force-pushed the d-kuro/stop branch 2 times, most recently from debb10e to 69b7f78 Compare November 2, 2023 11:42
@d-kuro d-kuro changed the title WIP: stop reconciliation and clustering Stop reconciliation and clustering Nov 15, 2023
@d-kuro d-kuro marked this pull request as ready for review November 15, 2023 04:30
e2e/stop_test.go Outdated Show resolved Hide resolved
cmd/kubectl-moco/cmd/stop.go Outdated Show resolved Hide resolved
e2e/stop_test.go Show resolved Hide resolved
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
@d-kuro
Copy link
Contributor Author

d-kuro commented Nov 22, 2023

I have added functionality to display messages when stopping or resuming clustering and reconciliation using the kubectl moco command.
4107682

@d-kuro d-kuro requested a review from kmdkuk November 22, 2023 03:54
@kmdkuk
Copy link
Contributor

kmdkuk commented Nov 28, 2023

LGTM
However, I would like to wait for a review of zoetrope.

}

if equality.Semantic.DeepEqual(orig, cluster) {
return nil
Copy link
Member

Choose a reason for hiding this comment

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

I want a message like "The clustering is already running."

}

if equality.Semantic.DeepEqual(orig, cluster) {
return nil
Copy link
Member

Choose a reason for hiding this comment

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

ditto.
I want a message like "The reconciliation is already running."

cluster.Annotations[constants.AnnClusteringStopped] = "true"

if equality.Semantic.DeepEqual(orig, cluster) {
return nil
Copy link
Member

Choose a reason for hiding this comment

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

ditto

cluster.Annotations[constants.AnnReconciliationStopped] = "true"

if equality.Semantic.DeepEqual(orig, cluster) {
return nil
Copy link
Member

Choose a reason for hiding this comment

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

ditto

Signed-off-by: d-kuro <kurosawa7620@gmail.com>
@d-kuro
Copy link
Contributor Author

d-kuro commented Dec 4, 2023

@zoetrope
Thanks for the comment. I have fixed it with the following commit.
75572b7

@d-kuro d-kuro requested a review from zoetrope December 4, 2023 21:58
Copy link
Member

@zoetrope zoetrope left a comment

Choose a reason for hiding this comment

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

LGTM

@zoetrope zoetrope merged commit cfdd1ff into main Dec 6, 2023
15 checks passed
@zoetrope zoetrope deleted the d-kuro/stop branch December 6, 2023 05:22
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.

3 participants