-
Notifications
You must be signed in to change notification settings - Fork 742
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
Fixes node label error handling #1892
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.
i prefer strategicMergePatch over mergePatch given it saves payload and we don't need conflict check for this specific usecase.
Sure sounds good. I am updating the PR. |
Updated with strategicMerge. |
Reviewers - I'm looking into UT cases. |
…8s into merge_two_way
UTs updated. |
…8s into merge_two_way
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
/approve
What type of PR is this?
bug
Which issue does this PR fix:
Fixes #1887
What does this PR do / Why do we need it:
Added error handling and node patch instead of update.
Using MergeFrom instead of StrategicMergeFrom, @M00nF1sh any preference here?
Ref: https://github.com/kubernetes-sigs/controller-runtime/blob/master/pkg/client/patch.go#L164
This will need patch permission for nodes. Will evaluate if we can remove update from nodes.
If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:
#1887
Testing done on this change:
Custom networking -
API server calls -
At 07:26:14.789Z upgraded from 1.7.10 to image with fix. API server calls are in sync with what we tested in 1.8.0
SGPP -
Automation added to e2e:
No
Will this PR introduce any new dependencies?:
No
Will this break upgrades or downgrades. Has updating a running cluster been tested?:
No
Does this change require updates to the CNI daemonset config files to work?:
Yes, need to add patch permission for nodes.
Does this PR introduce any user-facing change?:
No
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.