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

Add annotation to configure healthcheck retries for EtcdadmCluster #44

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

abhinavmpandey08
Copy link
Member

@abhinavmpandey08 abhinavmpandey08 commented Aug 28, 2023

Description of changes:
This PR adds an annotation etcdcluster.cluster.x-k8s.io/healthcheck-retries which allows you to configure healthcheck tries for individual EtcdadmCluster objects.

kubectl annotate etcdadmcluster my-etcd-cluster "etcdcluster.cluster.x-k8s.io/healthcheck-retries=10"

Setting the healthcheck retries to 0 skips healthchecks for that cluster altogether and doesn't reconcile any unhealthy etcd machines.

It also makes the healthcheck interval configurable using the --healthcheck-interval flag on the etcdadm-controller, with the same default of 30 seconds.

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

controllers/controller.go Outdated Show resolved Hide resolved
controllers/periodic_healthcheck_test.go Outdated Show resolved Hide resolved
controllers/periodic_healthcheck_test.go Outdated Show resolved Hide resolved
api/v1beta1/etcdadmcluster_types.go Outdated Show resolved Hide resolved
@abhinavmpandey08 abhinavmpandey08 force-pushed the disable-healthcheck branch 2 times, most recently from ed98732 to cf83ac8 Compare September 5, 2023 18:32
@abhinavmpandey08 abhinavmpandey08 changed the title Add annotation to skip healthchecks for EtcdadmCluster Add annotation to configure healthcheck retries for EtcdadmCluster Sep 5, 2023
@abhinavmpandey08 abhinavmpandey08 force-pushed the disable-healthcheck branch 2 times, most recently from b01352e to a275909 Compare September 5, 2023 18:46
controllers/controller_test.go Outdated Show resolved Hide resolved
controllers/controller_test.go Outdated Show resolved Hide resolved
@abhinavmpandey08 abhinavmpandey08 force-pushed the disable-healthcheck branch 4 times, most recently from c7a2b6d to 2067bbe Compare September 6, 2023 22:13
@abhinavmpandey08 abhinavmpandey08 merged commit 21acd8a into aws:main Sep 6, 2023
1 check passed
@abhinavmpandey08 abhinavmpandey08 deleted the disable-healthcheck branch September 6, 2023 22:19
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