Merge pull request #135568 from neoaggelos/neo/etcd-supported-versions

add skew -2 version in SupportedEtcdVersion
This commit is contained in:
Kubernetes Prow Robot
2025-12-03 04:10:26 -08:00
committed by GitHub
2 changed files with 2 additions and 8 deletions

View File

@@ -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",
}

View File

@@ -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",