skip volume cloning tests until we backport
@@ -554,12 +554,18 @@ func generateGCETestSkip(testParams *testParameters) string {
func generateGKETestSkip(testParams *testParameters) string {
skipString := "\\[Disruptive\\]|\\[Serial\\]"
+
curVer := mustParseVersion(testParams.clusterVersion)
var nodeVer *version
if testParams.nodeVersion != "" {
nodeVer = mustParseVersion(testParams.nodeVersion)
}
+ // Cloning test fixes were introduced after 1.23.
+ if curVer.lessThan(mustParseVersion("1.24.0")) {
+ skipString = skipString + "|\\[Feature:VolumeSnapshotDataSource\\]|pvc.data.source"
+ }
+
// "volumeMode should not mount / map unused volumes in a pod" tests a
// (https://github.com/kubernetes/kubernetes/pull/81163)
// bug-fix introduced in 1.16
