-
Notifications
You must be signed in to change notification settings - Fork 86
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
Update pods check needs removal #1954
Update pods check needs removal #1954
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you try to add an additional test case for this in our e2e test framework? We should be adding this to the operator tests here: https://github.com/FoundationDB/fdb-kubernetes-operator/blob/main/e2e/test_operator/operator_test.go.
Thanks for the PR!
Changes look mostly fine, just a few comments from my side and it would be great if we could add an e2e test.
Co-authored-by: Johannes Scheuermann <[email protected]>
Result of fdb-kubernetes-operator-pr on Linux CentOS 7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make sure that the tests are passing? Based on the CI output you have to run the make fmt
command. In general it's a good idea to run make fmt lint test
before pushing the changes.
This reverts commit 6de6277.
@johscheuer (I haven't added e2e tests, this requires more investment from my side. Do you have any recommendations for reducing the feedback loop when implementing a new test?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johscheuer
I've adjusted the PR, addressing the comments. Note: Only removed the reconciler part from logger.withValues.
Thanks, I take a look today.
(I haven't added e2e tests, this requires more investment from my side. Do you have any recommendations for reducing the feedback loop when implementing a new test?)
You can run a single e2e test with prefixing the test case with F
, that's the normal Ginkgo feature. If you run frequent tests, it might be faster to reuse ac cluster: https://github.com/FoundationDB/fdb-kubernetes-operator/tree/main/e2e#reusing-an-existing-test-cluster. Depending on your test, you just have to make sure the cluster is in a good shape again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes LGTM. It would be great if you could add an e2e test for this behaviour.
Result of fdb-kubernetes-operator-pr on Linux CentOS 7
|
Added an e2e tests which:
In the current version, replacement will start on 3 of the storage pods, while the remaining 2 are updated through deletion. For step 4, it might be more robust to compare names of the volumes referred by the PVC, and not the whole PVC object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM 👍 I left a comment on the e2e test but it's only informational.
Thanks for the PR!
Description
Fixes bug where delete strategy is applied on pods not marked for removal in the replaceMisconfiguredProcessGroups step, #1918, by checking if the pod needs removal in the updatePods reconciler.
Type of change
Discussion
Are there any design details that you would like to discuss further?
Testing
In addition to the ginkgo tests, also tested in a kubernetes deployment, verifying that update deletion strategy will not be applied if the update requires a removal / replacement.