diff --git a/cmd/kubeadm/app/constants/constants.go b/cmd/kubeadm/app/constants/constants.go index 4bc2b9a6a04..8c107f034f4 100644 --- a/cmd/kubeadm/app/constants/constants.go +++ b/cmd/kubeadm/app/constants/constants.go @@ -503,7 +503,8 @@ var ( // The maximum length of the map should be 2, as kubeadm supports a maximum skew of -1 // with the control plane version. SupportedEtcdVersion = map[uint8]string{ - uint8(getSkewedKubernetesVersion(-1).Minor()): "3.5.24-0", + uint8(getSkewedKubernetesVersion(-2).Minor()): "3.5.24-0", + uint8(getSkewedKubernetesVersion(-1).Minor()): "3.6.5-0", uint8(getSkewedKubernetesVersion(0).Minor()): "3.6.5-0", } diff --git a/cmd/kubeadm/app/constants/constants_test.go b/cmd/kubeadm/app/constants/constants_test.go index 31b786f5d50..dea843890e1 100644 --- a/cmd/kubeadm/app/constants/constants_test.go +++ b/cmd/kubeadm/app/constants/constants_test.go @@ -98,13 +98,6 @@ func TestGetStaticPodFilepath(t *testing.T) { } } -func TestEtcdSupportedVersionLength(t *testing.T) { - const max = 2 - if len(SupportedEtcdVersion) > max { - t.Fatalf("SupportedEtcdVersion must not include more than %d versions", max) - } -} - func TestEtcdSupportedVersion(t *testing.T) { var supportedEtcdVersion = map[uint8]string{ 17: "3.3.17-0",