-
Notifications
You must be signed in to change notification settings - Fork 532
use merge-patch on finalizer operations to resolve racing conflicts #1389
use merge-patch on finalizer operations to resolve racing conflicts #1389
Conversation
Signed-off-by: Bruce Ma <[email protected]>
Signed-off-by: Bruce Ma <[email protected]>
89ef98e
to
053597a
Compare
There are many |
Actually, this is only the first step. I'll try to use more |
@hectorj2f What's your suggestion? |
Signed-off-by: Bruce Ma <[email protected]>
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.
I'd like to see a more consistent and global change of Update to Patch operations across the whole code. I agree with @mars1024 here.
Thanks for your agreement, @hectorj2f , and I think this PR is already ready as the first step. |
/lgtm |
friendly ping @hectorj2f for approval or more comments |
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.
@mars1024 What did it happen with the rest of changes to use Patch instead of Update ?
Recently I didn't have much time on this, so I opened an help-wanted UMBRELLA issue to track the rest changes. |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hectorj2f, makkes, mars1024 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 |
What this PR does / why we need it:
Patch
is more efficient thanUpdate
to handle racing conditions on high-frequency changes of objects, which is also recommended by kubernetes spec.Which issue(s) this PR fixes:
Try to avoid some errors, like https://github.com/kubernetes-sigs/kubefed/blob/4dbd63b07de4b2bcebf3bd2632e0ec08e254f4c3/pkg/controller/sync/controller.go#L283