kubernetes/cmd/kubeadm/app/util/config
Lubomir I. Ivanov 207ffa7bdc kubeadm: dynamically populate the current/minimum k8s versions
Kubeadm requires manual version updates of its current supported k8s
control plane version and minimally supported k8s control plane and
kubelet versions every release cycle.

To avoid that, in constants.go:
- Add the helper function getSkewedKubernetesVersion() that can be
used to retrieve a MAJOR.(MINOR+n).0 version of k8s. It currently
uses the kubeadm version populated in "component-base/version" during
the kubeadm build process.
- Use the function to set existing version constants (variables).

Update util/config/common.go#NormalizeKubernetesVersion() to
tolerate the case where a k8s version in the ClusterConfiguration
is too old for the kubeadm binary to use during code freeze.

Include unit tests for the new utilities.
2021-08-09 19:42:08 +03:00
..
strict re-order the imports in kubeadm 2021-07-04 16:41:27 +08:00
cluster_test.go kubeadm: statically default the "from cluster" InitConfiguration 2021-07-08 02:52:11 +03:00
cluster.go kubeadm: statically default the "from cluster" InitConfiguration 2021-07-08 02:52:11 +03:00
common_test.go kubeadm: dynamically populate the current/minimum k8s versions 2021-08-09 19:42:08 +03:00
common.go kubeadm: dynamically populate the current/minimum k8s versions 2021-08-09 19:42:08 +03:00
initconfiguration_test.go re-order the imports in kubeadm 2021-07-04 16:41:27 +08:00
initconfiguration.go re-order the imports in kubeadm 2021-07-04 16:41:27 +08:00
joinconfiguration_test.go re-order the imports in kubeadm 2021-07-04 16:41:27 +08:00
joinconfiguration.go re-order the imports in kubeadm 2021-07-04 16:41:27 +08:00