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 StatefulSet await logic for OnDelete update #2473

Merged
merged 3 commits into from
Jun 27, 2023

Conversation

lblackstone
Copy link
Member

Proposed changes

The await logic for StatefulSets previously only worked for the default RollingUpdate strategy. StatefulSets that were updated using the OnDelete strategy would incorrectly report that they were not ready because the provider was not accounting for differences in the status fields that depend on the update method. This change fixes the await logic so that both update strategies correctly report readiness.

Related issues (optional)

Fix #1066

The await logic for StatefulSets previously only worked for the default RollingUpdate strategy. StatefulSets that were updated using the OnDelete strategy would incorrectly report that they were not ready because the provider was not accounting for differences in the status fields that depend on the update method. This change fixes the await logic so that both update strategies correctly report readiness.
@lblackstone lblackstone requested a review from a team June 26, 2023 23:02
@lblackstone
Copy link
Member Author

I confirmed that the new test fails before the change, and passes after.

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@lblackstone lblackstone merged commit 5a7835d into master Jun 27, 2023
@lblackstone lblackstone deleted the lblackstone/statefulset-ondelete branch June 27, 2023 00: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.

Updating StatefulSet using OnDelete UpdateStrategy results in always waiting
2 participants