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
Chain the field manager creation calls in newDefaultFieldManager #101076
Conversation
Per @apelisse's suggestion, we're now chaining together the field manager creation steps in The drawback is that it's a little less clear what the arguments are for each step (and the indenting is kind of ugly). Let me know if this is makes things better or worse (otherwise we can just revert the bug via #101061) Aside: Isn't this what the builder pattern is for? Not sure if it's worth introducing here if we don't use it elsewhere in k/k, but just a thought. PTAL @apelisse |
I'm not a fan of how this reads, but would live with it for the sake of explicit order :-/ |
Maybe it would be better just to leave it as is, but comment that the order is reversed. |
/ok-to-test |
/retest |
1 similar comment
/retest |
/triage accepted |
/retest |
/retest |
1 similar comment
/retest |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: apelisse, kevindelgado, pacoxu 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 |
/retest |
/test pull-kubernetes-e2e-kind |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Reverts an erroneous reordering of fieldmanager creation steps in
newDefaultFieldmanager
(fieldmanager: Strip managedfields BEFORE we update the timestamp #100032)Inlines/chains the field manager creation steps in both
newDefualtFieldManager
andNewTestFieldManager
to be explicit about the order of operations.Which issue(s) this PR fixes:
Fixes #101019
Does this PR introduce a user-facing change?