-
Notifications
You must be signed in to change notification settings - Fork 39.3k
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
chore(kubelet): simpler createAndInitKubelet func #103069
chore(kubelet): simpler createAndInitKubelet func #103069
Conversation
/test pull-kubernetes-e2e-capz-ha-control-plane |
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.
👍 but we might want to wait until between releases to do this refactor in case it breaks in-flight work.
/priority backlog
/triage accepted
/lgtm
/skip |
/release-note-none |
/test pull-kubernetes-e2e-capz-ha-control-plane |
645402b
to
a1b5e95
Compare
@mrunalp @pacoxu hopefully this is a quick review this is a simple PR I've had open for a while that makes ongoing maintenance, such as this change in this PR, easier: 0819451#diff-3a14a9838132c6668f4d100c26afa05b471b149c469edfece9b84fcd058c8a4bL1117 |
a1b5e95
to
e5001cc
Compare
e5001cc
to
91c7f3f
Compare
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
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: jackfrancis, mrunalp, 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR simplifies the way that the
cmd/kubelet/app
package hands off itskubeServer
configuration (of type*options.KubeletServer
) to the localcreateAndInitKubelet
function. Rather than dereferencing the required set of properties that are eventually sent topkg/kubelet --> NewMainKubelet()
we can simply pass along thekubeServer
to the private func, reducing a bit of passing and receiving overhead incmd/kubelet/app
.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: