Skip to content

Commit

Permalink
cgroupv1: kubeadm: do not run tests for version >= 4152
Browse files Browse the repository at this point in the history
  • Loading branch information
ader1990 committed Dec 2, 2024
1 parent 5fe8bbd commit dda563c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kola/tests/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"bytes"
"encoding/base64"
"fmt"
"math"
"strings"
"text/template"
"time"
Expand Down Expand Up @@ -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" {
Expand All @@ -175,6 +178,7 @@ func init() {
kubeadmBaseTest(c, testParams)
},
MinVersion: semver.Version{Major: major},
EndVersion: semver.Version{Major: majorEnd},
Flags: flags,
})
}
Expand Down

0 comments on commit dda563c

Please sign in to comment.