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

Wait for replica to update pods before processing next statefulset update #260

Merged
merged 4 commits into from
Jan 8, 2021

Conversation

robskillington
Copy link
Collaborator

This allows for gating progression to updating the next statefulset until all pods have been updated, avoiding the statefulset looking "ready" and "healthy" even though it has a pending update which it's about to process (and start updating pods).

@codecov
Copy link

codecov bot commented Jan 8, 2021

Codecov Report

Merging #260 (ec548f4) into master (4074a36) will decrease coverage by 0.08%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #260      +/-   ##
==========================================
- Coverage   75.54%   75.45%   -0.09%     
==========================================
  Files          31       31              
  Lines        2437     2310     -127     
==========================================
- Hits         1841     1743      -98     
+ Misses        444      425      -19     
+ Partials      152      142      -10     

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4074a36...ec548f4. Read the comment docs.

simulatePodsNotUpdated: true,
expUpdateStatefulSets: []string{"cluster1-rep0", "cluster1-rep1", "cluster1-rep2"},
expFailedUpdateStatefulSets: []string{"cluster1-rep1", "cluster1-rep2"},
expNotDone: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

for my own understanding: this would be false before your change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@wesleyk it was more that, before this change if simulatePodsNotUpdated had existed in this test code and the "UpdatedReplicas" did not match the expected replicas in the statefulset it would have progressed to update the next statefulset anyway.

pkg/controller/controller.go Show resolved Hide resolved
@robskillington robskillington merged commit 2c89672 into master Jan 8, 2021
@robskillington robskillington deleted the r/handle-wait-for-replicas-update branch January 8, 2021 16:33
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.

None yet

4 participants