Skip to content

Commit ebd628c

Browse files
committed
Skip rwop fsgroup tests when node version is below 1.32
1 parent 1b15343 commit ebd628c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/k8s-integration/main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,13 @@ func generateGKETestSkip(testParams *testParameters) string {
744744
// Skip mount options test until we fix the invalid mount options for xfs.
745745
skipString = skipString + "|csi-gcepd-sc-xfs.*provisioning.should.provision.storage.with.mount.options"
746746

747+
// Skip rwop test when node version is less than 1.32. Test was added only
748+
// in 1.32 and above, see tags in
749+
// https://github.com/kubernetes/kubernetes/pull/128244.
750+
if nodeVer != nil && nodeVer.lessThan(mustParseVersion("1.32.0")) {
751+
skipString = skipString + "|rwop.pod.created.with.an.initial.fsgroup..new.pod.fsgroup.applied.to.volume.contents"
752+
}
753+
747754
return skipString
748755
}
749756

0 commit comments

Comments
 (0)