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 bug in updating labels for zookeeper #282

Merged
merged 9 commits into from
Sep 19, 2023
Merged

Fix bug in updating labels for zookeeper #282

merged 9 commits into from
Sep 19, 2023

Conversation

marshtompsxd
Copy link
Collaborator

@marshtompsxd marshtompsxd commented Sep 18, 2023

Previously the zookeeper controller updates the volume_claim_templates field inside the stateful set when the .spec.labeles or .spec.annotations get updated by the user. However, volume_claim_templates is immutable (see validation check here: https://github.com/kubernetes/kubernetes/blob/v1.26.3/pkg/apis/apps/validation/validation.go#L171-L192) and such update will deterministically fail, leading to liveness violation. The current validation check logic in the state machine specification needs to be further enhanced so that we can formally reason about such behavior.

@marshtompsxd marshtompsxd changed the title Refactor service update logic for zookeeper Fix bug in updating service for zookeeper Sep 19, 2023
@marshtompsxd marshtompsxd changed the title Fix bug in updating service for zookeeper Fix bug in updating labels for zookeeper Sep 19, 2023
@marshtompsxd marshtompsxd added this pull request to the merge queue Sep 19, 2023
Merged via the queue into main with commit 0c0fa54 Sep 19, 2023
6 checks passed
@marshtompsxd marshtompsxd deleted the update-svc branch September 20, 2023 20:36
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.

1 participant