Skip to content

Commit 1634555

Browse files
Test pd-extreme k8s integration
1 parent a11cd4b commit 1634555

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/k8s-integration/driver-config.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ func generateDriverConfigFile(testParams *testParameters) (string, error) {
127127
snapshotClassName = "no-volumesnapshotclass"
128128
}
129129

130-
caps = append(caps, "pvcDataSource")
130+
if !strings.Contains(testParams.storageClassFile, "sc-extreme") {
131+
caps = append(caps, "pvcDataSource")
132+
}
131133
minimumVolumeSize := "5Gi"
132134
numAllowedTopologies := 1
133135
if testParams.storageClassFile == regionalPDStorageClass {

test/k8s-integration/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ func handle() error {
479479
}
480480

481481
skipDiskImageSnapshots := false
482-
if mustParseVersion(testParams.clusterVersion).lessThan(mustParseVersion("1.22.0")) || strings.Contains(testParams.storageClassFile, "sc-extreme") {
482+
if mustParseVersion(testParams.clusterVersion).lessThan(mustParseVersion("1.22.0")) {
483483
// Disk image cloning in only supported from 1.22 on.
484484
skipDiskImageSnapshots = true
485485
}

0 commit comments

Comments
 (0)