![]() 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. |
||
---|---|---|
.. | ||
strict | ||
cluster_test.go | ||
cluster.go | ||
common_test.go | ||
common.go | ||
initconfiguration_test.go | ||
initconfiguration.go | ||
joinconfiguration_test.go | ||
joinconfiguration.go |