-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
Kubelet: only sync iptables on linux #67690
Conversation
/sig windows /assign @dchen1107 @PatrickLang |
/retest |
please add a note about the tests moving to linux too ( |
@dims |
@feiskyer just the commit message, not the release note. |
Hmm, yep. Let me add that. |
afc0514
to
0f1bb76
Compare
Commit message updated with tests moves. |
/retest |
/LGTM for windows |
/assign @dchen1107 |
/lgtm |
* TestMakeBlockVolume is moved to Linux only. * TestMakeMounts are running on both Linux and Windows
0f1bb76
to
376b45c
Compare
Rebased to master and solved compile errors. |
/retest |
package kubelet | ||
|
||
// Do nothing. | ||
func (kl *Kubelet) syncNetworkUtil() {} |
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.
what about naming as pkg/kubelet/kubelet_network_unsupported.go
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.
it's same but _others
is preferred because _linux.go
is used for Linux builds.
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: andyzhangx, dchen1107, feiskyer, PatrickLang 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 |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. |
What this PR does / why we need it:
Iptables is only supported on Linux, kubelet should only sync NAT rules on Linux.
Without this PR, Kubelet on Windows would logs following errors on each
syncNetworkUtil()
:Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #65713
Special notes for your reviewer:
Release note: