-
Notifications
You must be signed in to change notification settings - Fork 40k
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
delete useless params containerized #56146
Conversation
Signed-off-by: zhangjie <zhangjie0619@yeah.net>
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.
Containerized
is not useless.
Object to this code change.
@@ -714,7 +714,6 @@ func RunKubelet(kubeFlags *options.KubeletFlags, kubeCfg *kubeletconfiginternal. | |||
kubeFlags.RegisterNode, | |||
kubeFlags.RegisterWithTaints, | |||
kubeFlags.AllowedUnsafeSysctls, | |||
kubeFlags.Containerized, |
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.
This flag is useful. It is used to indicate that kubelet
is running in containerized mode.
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 appears that this particular boolean in this particular code path is not used. This PR is not removing the code that configures the NsenterMounter, for example (
kubernetes/cmd/kubelet/app/server.go
Lines 141 to 145 in d1e711a
if s.Containerized { | |
glog.V(2).Info("Running kubelet in containerized mode (experimental)") | |
mounter = mount.NewNsenterMounter() | |
writer = &kubeio.NsenterWriter{} | |
} |
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 think @ncdc is right. This doesn't remove the flag, nor the field in the kubelet configuration. It only removes the redundant passing of this variable.
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.
/test all |
/unassign |
/lgtm |
/approve no-issue |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jiulongzaitian, yujuhong Associated issue requirement bypassed by: yujuhong The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/ok-to-test |
/test pull-kubernetes-unit |
/retest Review the full test history for this PR. |
2 similar comments
/retest Review the full test history for this PR. |
/retest Review the full test history for this PR. |
Automatic merge from submit-queue (batch tested with PRs 57172, 55382, 56147, 56146, 56158). If you want to cherry-pick this change to another branch, please follow the instructions here. |
Signed-off-by: zhangjie zhangjie0619@yeah.net
What this PR does / why we need it:
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 #
Special notes for your reviewer:
Release note: