File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -478,6 +478,12 @@ func handle() error {
478
478
return fmt .Errorf ("Unknown deployment strategy %s" , testParams .deploymentStrategy )
479
479
}
480
480
481
+ skipDiskImageSnapshots := false
482
+ if mustParseVersion (testParams .clusterVersion ).lessThan (mustParseVersion ("1.22.0" )) {
483
+ // Disk image cloning in only supported from 1.22 on.
484
+ skipDiskImageSnapshots = true
485
+ }
486
+
481
487
// Run the tests using the k8sSourceDir kubernetes
482
488
if len (* storageClassFiles ) != 0 {
483
489
applicableStorageClassFiles := []string {}
@@ -498,6 +504,9 @@ func handle() error {
498
504
}
499
505
for _ , rawSnapshotClassFile := range strings .Split (* snapshotClassFiles , "," ) {
500
506
snapshotClassFile := strings .TrimSpace (rawSnapshotClassFile )
507
+ if skipDiskImageSnapshots && strings .Contains (snapshotClassFile , "image-volumesnapshotclass" ) {
508
+ continue
509
+ }
501
510
if len (snapshotClassFile ) != 0 {
502
511
applicableSnapshotClassFiles = append (applicableSnapshotClassFiles , snapshotClassFile )
503
512
}
You can’t perform that action at this time.
0 commit comments