From d8b3ada1c15a98262583f999fc051725cffbb23d Mon Sep 17 00:00:00 2001 From: SataQiu Date: Thu, 15 Aug 2024 18:23:59 +0800 Subject: [PATCH] kubeadm: update supported etcd version list for 1.32 Signed-off-by: SataQiu --- cmd/kubeadm/app/constants/constants.go | 1 + cmd/kubeadm/app/constants/constants_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/constants/constants.go b/cmd/kubeadm/app/constants/constants.go index b2f0e12c284..32b5451e15a 100644 --- a/cmd/kubeadm/app/constants/constants.go +++ b/cmd/kubeadm/app/constants/constants.go @@ -484,6 +484,7 @@ var ( 29: "3.5.15-0", 30: "3.5.15-0", 31: "3.5.15-0", + 32: "3.5.15-0", } // KubeadmCertsClusterRoleName sets the name for the ClusterRole that allows diff --git a/cmd/kubeadm/app/constants/constants_test.go b/cmd/kubeadm/app/constants/constants_test.go index 37561ccde51..779ec5fda9a 100644 --- a/cmd/kubeadm/app/constants/constants_test.go +++ b/cmd/kubeadm/app/constants/constants_test.go @@ -99,7 +99,7 @@ func TestGetStaticPodFilepath(t *testing.T) { } func TestEtcdSupportedVersionLength(t *testing.T) { - const max = 3 + const max = 4 if len(SupportedEtcdVersion) > max { t.Fatalf("SupportedEtcdVersion must not include more than %d versions", max) }