-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Refactor patch helper to handle observedGeneration and Conditions #3118
🌱 Refactor patch helper to handle observedGeneration and Conditions #3118
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
523bd53
to
3a6ba7b
Compare
3a6ba7b
to
41e48bf
Compare
/hold We shouldn't merge this until there is more testing and controller-runtime has a release (next week) |
41e48bf
to
c28e000
Compare
c28e000
to
0501ce6
Compare
/assign @fabriziopandini @benmoss |
This has been reworked quite a bit now, and the flow should be more clear and robust. |
0501ce6
to
10b3d1c
Compare
/test pull-cluster-api-make |
963c5fd
to
8f3e45e
Compare
@vincepri could you please add a PR description describing what this is doing and why? |
8f3e45e
to
c535cfd
Compare
Description updated, I think this is ready for review, waiting for the e2e to pass first. |
a8b3d05
to
8a9155f
Compare
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.
LGTM, deferring to other reviewers as there's been a lot of eyes on this PR
8a9155f
to
2071d84
Compare
Added more tests around conditions and conflict resolution |
/milestone v0.3.7 |
/retitle 🌱 Refactor patch helper to handle observedGeneration and Conditions |
lgtm |
2071d84
to
a7cf565
Compare
a7cf565
to
5e1bf5d
Compare
/hold cancel |
- Includes a new test suite to provide better coverage scenarios, and avoid the fake client. - Includes the use of a strategic 3 way merge when dealing with cluster-api conditions. Signed-off-by: Vince Prignano <[email protected]>
5e1bf5d
to
d09777b
Compare
@vincepri: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/test pull-cluster-api-test |
/lgtm |
Signed-off-by: Vince Prignano [email protected]
What this PR does / why we need it:
This PR is a major refactor of our test utilities to
observedGeneration
via an Option that users might specify when callingNewHelper
.conditions.{Getter, Setter}
interfaces and try to remedy possible conflicts when we have multiple controllers updating conditions at the same time.envtest
(a real local api server) instead of a fake client.