Skip to content

Commit 088dfa1

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

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: test/k8s-integration/driver-config.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,12 @@ func generateDriverConfigFile(testParams *testParameters) (string, error) {
127127
snapshotClassName = "no-volumesnapshotclass"
128128
}
129129

130-
caps = append(caps, "pvcDataSource")
130+
if strings.Contains(testParams.storageClassFile, "sc-standard") {
131+
caps = append(caps, "pvcDataSource")
132+
}
131133
minimumVolumeSize := "5Gi"
132134
numAllowedTopologies := 1
133-
if testParams.storageClassFile == regionalPDStorageClass {
135+
if testParams.storageClassFile == regionalPDStorageClass && !strings.Contains(testParams.storageClassFile, "sc-extreme") {
134136
minimumVolumeSize = "200Gi"
135137
numAllowedTopologies = 2
136138
}

Diff for: 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)