Skip to content

Commit

Permalink
kola/kubeadm: do not activate SELinux for Flannel
Browse files Browse the repository at this point in the history
Can be reverted once:
flatcar/Flatcar#779 done

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
  • Loading branch information
tormath1 committed Jun 16, 2022
1 parent 25e8a4d commit 8e8116b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kola/tests/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func init() {
registerTests := func(config map[string]map[string]interface{}) {
for version, params := range config {
for _, CNI := range CNIs {
flags := []register.Flag{}
// ugly but required to remove the reference between params and the params
// actually used by the test.
testParams := make(map[string]interface{})
Expand All @@ -154,6 +155,10 @@ func init() {
major = 3140
}

if CNI == "flannel" {
flags = append(flags, register.NoEnableSelinux)
}

register.Register(&register.Test{
Name: fmt.Sprintf("kubeadm.%s.%s%s.base", version, CNI, cgroupSuffix),
Distros: []string{"cl"},
Expand All @@ -163,6 +168,7 @@ func init() {
kubeadmBaseTest(c, testParams)
},
MinVersion: semver.Version{Major: major},
Flags: flags,
})
}
}
Expand Down

0 comments on commit 8e8116b

Please sign in to comment.