kubernetes/cmd/kubeadm/app/phases/kubelet
Rostislav M. Georgiev 5d6cf8ecd4 kubeadm: Distinguish between user supplied and generated component configs
Until now, users were always asked to manually convert a component config to a
version supported by kubeadm, if kubeadm is not supporting its version.
This is true even for configs generated with older kubeadm versions, hence
getting users to make manual conversions on kubeadm generated configs.
This is not appropriate and user friendly, although, it tends to be the most
common case. Hence, we sign kubeadm generated component configs stored in
config maps with a SHA256 checksum. If a configs is loaded by kubeadm from a
config map and has a valid signature it's considered "kubeadm generated" and if
a version migration is required, this config is automatically discarded and a
new one is generated.
If there is no checksum or the checksum is not matching, the config is
considered as "user supplied" and, if a version migration is required, kubeadm
will bail out with an error, requiring manual config migration (as it's today).
The behavior when supplying component configs on the kubeadm command line
does not change. Kubeadm would still bail out with an error requiring migration
if it can recognize their groups but not versions.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2020-06-01 17:57:53 +03:00
..
BUILD kubeadm: Reduce kubelet.DownloadConfig usage 2020-05-19 13:30:45 +03:00
config_test.go kubeadm: Group centric component configs 2019-11-26 13:55:28 +02:00
config.go kubeadm: Distinguish between user supplied and generated component configs 2020-06-01 17:57:53 +03:00
dynamic_test.go move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/ 2019-02-05 13:39:07 -05:00
dynamic.go kubeadm: Add ability to retry ConfigMap get if certain errors happen 2019-06-12 17:49:27 +02:00
flags_test.go kubeadm: do not set deprecated '--cgroup-driver' flag in kubeadm-flags.env, this value will be set in config.yaml 2020-04-27 15:32:10 +08:00
flags.go switch over k/k to use klog v2 2020-05-16 07:54:27 -04:00
kubelet.go kubeadm: enable kubelet client certificate rotation on primary CP nodes 2019-11-13 15:49:33 +02:00