Final kubeadm-kubelet integration refactor PR#64624
Final kubeadm-kubelet integration refactor PR#64624k8s-github-robot merged 2 commits intokubernetes:masterfrom
Conversation
chuckha
left a comment
There was a problem hiding this comment.
Looking forward to having this.
Please fix the glog issues then it's 👍from me.
In general, do not use glog.Infof/ln and favor fmt.Printf/ln. If you want it to not show up by default, use glog.V(x).Infof/ln.
The bare glog.Info calls are responsible for the gross default log output.
cmd/kubeadm/app/preflight/checks.go
Outdated
There was a problem hiding this comment.
This applies to all uses of glog.Info{f,ln}
Either use glog as a glog.V(x).Infoln or fmt.Println
There was a problem hiding this comment.
I'm gonna wait for your PR to merge, rebase and then fixup this (which then gets easier, given your PR merges tonight)
cmd/kubeadm/app/preflight/checks.go
Outdated
There was a problem hiding this comment.
This seems like an error instead of a warning, unless there's a way we can recover automatically from this failure?
Additionally, instead of using glog.Warningf, please add a warning prefix and use fmt.Println. Or if you feel like warning isn't the right level, use fmt.Printf or glog.V(x).Infof
cmd/kubeadm/app/cmd/upgrade/node.go
Outdated
cmd/kubeadm/app/cmd/upgrade/node.go
Outdated
There was a problem hiding this comment.
accidentally the rest of the sentence
cmd/kubeadm/app/cmd/init.go
Outdated
There was a problem hiding this comment.
? - this seems misplaced to me.
There was a problem hiding this comment.
kubeletVersion is needed for the dynamic config func. This execs out to the kubelet to determine what version to target. This func call just moved to where it's actually used
cmd/kubeadm/app/cmd/upgrade/node.go
Outdated
There was a problem hiding this comment.
I don't know how I feel about this vs. under the config subcommand.
UX is inconsistent for configs
There was a problem hiding this comment.
This is gonna be pretty similar to kubeadm phase kubelet config download. WDYT?
cmd/kubeadm/app/preflight/checks.go
Outdated
There was a problem hiding this comment.
Um then we should call this f(n) restart.
There was a problem hiding this comment.
oops should be .ServiceStop here. fixed
build/rpms/10-kubeadm.conf
Outdated
build/rpms/10-kubeadm.conf
Outdated
build/debs/10-kubeadm.conf
Outdated
build/debs/10-kubeadm.conf
Outdated
cdc6e5b to
7964d7c
Compare
|
/retest Review the full test history for this PR. Silence the bot with an |
1 similar comment
|
/retest Review the full test history for this PR. Silence the bot with an |
|
/test pull-kubernetes-e2e-gce |
|
/retest Review the full test history for this PR. Silence the bot with an |
1 similar comment
|
/retest Review the full test history for this PR. Silence the bot with an |
… integration work
7d3592b to
d60aa40
Compare
|
(as part of the rebase, I added more unit test cases in |
d60aa40 to
7a87cf1
Compare
|
/test pull-kubernetes-e2e-gce |
|
re-adding |
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: fabriziopandini, luxas, neolit123, timothysc The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process @fabriziopandini @luxas @neolit123 @timothysc Pull Request Labels
|
|
/test pull-kubernetes-kubemark-e2e-gce |
|
/test pull-kubernetes-kubemark-e2e-gce |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
/test pull-kubernetes-node-e2e |
|
Automatic merge from submit-queue (batch tested with PRs 63386, 64624, 62297, 64847). If you want to cherry-pick this change to another branch, please follow the instructions here. |
|
@luxas: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
Hello there! @luxas I'm Zach Arnold working on Docs for the 1.11 release. This PR was identified as one needing some documentation in the https://github.com/kubernetes/website repo around your contributions (thanks by the way!) When you have some time, could you please modify/add/remove the relevant content that needs changing in our documentation repo? Thanks! Please let me or my colleague Misty know (@zparnold/@misty on K8s Slack) if you need any assistance with the documentation. |
What this PR does / why we need it:
Note: Work in progress
This PR:
CRISocketinformation to the Node object as an annotationkubeadm init/kubeadm joinflow to be preflight, stop kubelet, write config/env files, daemon-reload, start kubelet.NodeRegistration.ExtraArgsto.NodeRegistration.KubeletExtraArgsas discussed in the SIG meetingkubeadm upgrade node configcommand for fetching the latest configuration and writing it down to the node before upgrading the kubeletkubeadm init --dry-runworks, so the dry-run functionality works for the kubelet integration as wellWhich issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes kubernetes/kubeadm#848
Special notes for your reviewer:
Release note:
@kubernetes/sig-cluster-lifecycle-pr-reviews