k3s/cmd
Kubernetes Submit Queue 52866471b1
Merge pull request #64974 from luxas/kubeadm_v111_bugs
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kubeadm: Fix small-ish bugs for v1.11

**What this PR does / why we need it**:

Fixes a bunch of bugs I noticed when I was reading the source code:
 - `--cloud-provider` should also be propagated to the kubelet when converting configs from v1alpha1 to v1alpha2
 - The validation for `.NodeRegistration.Name` is practically non-existent, just verifies the name isn't in upper case. Instead we currently do that validation in preflight checks, which is in the totally wrong place.
 - Now that we pull images in preflight checks, the timeout for the kubelet to start the Static Pods should be kinda short, as it doesn't depend on internet connection
 - I think the shorthand for `kubeadm reset --force` ought to be `-f`
 - The common flags between `upgrade apply` and `upgrade plan` were registered as global flags for the `upgrade` command, although they make no sense for `upgrade diff` and/or `upgrade node config`. Hence, I moved them to be locally registered.
 - Just because we vendor `glog` we have a lot of unnecessary/annoying flags registered in glog's `init()` function. Let's hide these properly.
 - I saw that `kubeadm upgrade apply` doesn't write down the new kubelet config that should be used, now that is the case. Also, the CRISocket annotation information is now preserved properly on upgrade (and is configurable using the `--cri-socket` flag)
 - If `kubeadm join` is run against a v1.10 cluster without the `kubelet-config-1.10` configmap,  it shouldn't fail.

What I will still investigate:
 - `kubeadm token create` should have a flag called `--ttl`, not `--token-ttl` as it is now (this snuck in in this dev cycle)
 - That `--dry-run` works properly for `upgrade`, end to end.

**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**:

```release-note
NONE
```
@kubernetes/sig-cluster-lifecycle-pr-reviews
2018-06-12 12:49:42 -07:00
..
clicheck wire config flags through factory 2018-05-04 17:02:20 -04:00
cloud-controller-manager Merge pull request #64016 from stewart-yu/stewart-controller-manager-codeclean 2018-05-30 18:49:17 -07:00
controller-manager auto generated file 2018-05-18 10:23:38 +08:00
gendocs wire config flags through factory 2018-05-04 17:02:20 -04:00
genkubedocs Remove signal handler registration from pkg/kubelet 2018-05-24 20:44:12 +01:00
genman Remove signal handler registration from pkg/kubelet 2018-05-24 20:44:12 +01:00
genswaggertypedocs
genutils
genyaml wire config flags through factory 2018-05-04 17:02:20 -04:00
hyperkube Remove signal handler registration from pkg/kubelet 2018-05-24 20:44:12 +01:00
importverifier fix message output for import verifier 2018-05-10 12:50:28 -04:00
kube-apiserver apiextensions-apiserver: add establishing controller to avoid race between established and CRs actually served 2018-05-29 13:46:47 +02:00
kube-controller-manager Provision interface change 2018-06-05 16:35:16 +08:00
kube-proxy Merge pull request #61077 from islinwb/fix_ipvs_warninfo 2018-05-31 20:01:26 -07:00
kube-scheduler Fixing scheduling latency metrics 2018-05-30 11:20:12 +02:00
kubeadm Merge pull request #64974 from luxas/kubeadm_v111_bugs 2018-06-12 12:49:42 -07:00
kubectl kubectl use its own logs 2018-05-22 11:35:38 +08:00
kubelet Merge pull request #60699 from CaoShuFeng/remove-enable-custom-metrics 2018-06-08 11:23:02 -07:00
kubemark
linkcheck
BUILD
OWNERS