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

Remove webhook blocking etcd scaling #55

Merged
merged 1 commit into from
Jan 13, 2024
Merged

Conversation

ahreehong
Copy link
Member

@ahreehong ahreehong commented Nov 16, 2023

Issue #, if available:

Description of changes:
Removes webhook blocking etcd replicas from being changed to enable etcd scaling

With testing of etcd scaling, we saw two issues:

  1. there was an issue with etcd marking cluster as ready as soon as the new machines got provisioned, without waiting for the machines to be running/ready when scaling up/down
  2. there was an issue with kcp never rolling out after etcd scaled because the etcd upgrade in progress annotation was never removed after scaling

Added changes to fix these issues as well.

Additionally, changed condition for max number of etcd replicas from 2x desired replicas to num all outdated machines + desired replicas to account for edge case if scaling down etcd replicas and also doing an upgrade

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

api/v1beta1/etcdadmcluster_webhook.go Show resolved Hide resolved
controllers/controller.go Outdated Show resolved Hide resolved
controllers/controller.go Outdated Show resolved Hide resolved
controllers/controller.go Outdated Show resolved Hide resolved
controllers/status.go Show resolved Hide resolved
controllers/controller.go Show resolved Hide resolved
@ahreehong ahreehong force-pushed the etcd-scaling branch 2 times, most recently from 6c5ac27 to a4900e8 Compare December 20, 2023 18:28
api/v1beta1/etcdadmcluster_webhook_test.go Outdated Show resolved Hide resolved
api/v1beta1/etcdadmcluster_webhook_test.go Outdated Show resolved Hide resolved
controllers/controller.go Outdated Show resolved Hide resolved
controllers/etcd_plane.go Show resolved Hide resolved
controllers/controller_test.go Outdated Show resolved Hide resolved
controllers/controller.go Outdated Show resolved Hide resolved
controllers/controller.go Show resolved Hide resolved
@ahreehong ahreehong force-pushed the etcd-scaling branch 2 times, most recently from 089e258 to 50dcada Compare December 22, 2023 17:12
api/v1beta1/etcdadmcluster_webhook_test.go Outdated Show resolved Hide resolved
controllers/controller_test.go Outdated Show resolved Hide resolved
controllers/controller.go Outdated Show resolved Hide resolved
controllers/periodic_healthcheck_test.go Show resolved Hide resolved
controllers/testutils.go Outdated Show resolved Hide resolved
controllers/controller_test.go Outdated Show resolved Hide resolved
controllers/controller_test.go Outdated Show resolved Hide resolved
controllers/controller_test.go Outdated Show resolved Hide resolved
api/v1beta1/etcdadmcluster_webhook_test.go Outdated Show resolved Hide resolved
@ahreehong ahreehong force-pushed the etcd-scaling branch 2 times, most recently from ae3b0c8 to 0339b52 Compare January 12, 2024 22:00
g-gaston
g-gaston previously approved these changes Jan 12, 2024
g-gaston
g-gaston previously approved these changes Jan 12, 2024
@ahreehong ahreehong merged commit a9b1cb2 into aws:main Jan 13, 2024
3 checks passed
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