From dda563c2d9f5e806334854990addc11b067e3f4e Mon Sep 17 00:00:00 2001 From: Adrian Vladu Date: Mon, 2 Dec 2024 16:23:15 +0200 Subject: [PATCH] cgroupv1: kubeadm: do not run tests for version >= 4152 --- kola/tests/kubeadm/kubeadm.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kola/tests/kubeadm/kubeadm.go b/kola/tests/kubeadm/kubeadm.go index 8165ee2f1..e6af3a922 100644 --- a/kola/tests/kubeadm/kubeadm.go +++ b/kola/tests/kubeadm/kubeadm.go @@ -17,6 +17,7 @@ import ( "bytes" "encoding/base64" "fmt" + "math" "strings" "text/template" "time" @@ -147,9 +148,11 @@ func init() { cgroupSuffix := "" var major int64 = 0 + var majorEnd int64 = math.MaxInt64 if testParams["cgroupv1"].(bool) { cgroupSuffix = ".cgroupv1" major = 3140 + majorEnd = 4152 } if CNI == "flannel" { @@ -175,6 +178,7 @@ func init() { kubeadmBaseTest(c, testParams) }, MinVersion: semver.Version{Major: major}, + EndVersion: semver.Version{Major: majorEnd}, Flags: flags, }) }