Skip to content

Commit d321cd6

Browse files
Merge pull request #606 from hungnguyen243/fixE2EMachineAutoconfigTest
Fix build issues with E2E tests
2 parents c506989 + 52d8854 commit d321cd6

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

pkg/csi_driver/utils.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,8 @@ func isSidecarVersionSupportedForGivenFeature(imageName string, sidecarMinSuppor
488488
return false
489489
}
490490
imageVersion := strings.Split(strings.Split(imageName, ":")[1], "@")[0]
491-
klog.Infof("sidecar image version: %v", imageVersion)
492491
if semver.Compare(imageVersion, sidecarMinSupportedVersion) >= 0 {
493-
klog.Infof("sidecar version is supported for token server")
492+
klog.Infof("sidecar version is supported for intelligent defaults on high-performance machine types")
494493
return true
495494
}
496495

test/e2e/testsuites/mount.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ func (t *gcsFuseCSIMountTestSuite) DefineTests(driver storageframework.TestDrive
7070
klog.Fatalf("env variable %q could not be converted to boolean", supportSAVolInjectionEnvVar)
7171
}
7272

73-
supportMachineTypeAutoConfigEnvVar := os.Getenv(utils.TestWithMachineTypeAutoConfigEnvVar)
74-
supportMachineTypeAutoconfig, err := strconv.ParseBool(supportMachineTypeAutoConfigEnvVar)
75-
if err != nil {
76-
klog.Fatalf("env variable %q could not be converted to boolean", supportMachineTypeAutoConfigEnvVar)
77-
}
78-
7973
type local struct {
8074
config *storageframework.PerTestConfig
8175
volumeResource *storageframework.VolumeResource

test/e2e/utils/handler.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ func Handle(testParams *TestParameters) error {
195195
if err != nil {
196196
klog.Fatalf(`support for intelligent defaults on high-performance machine types could not be determined: %v`, err)
197197
}
198+
198199
testParams.SupportMachineTypeAutoconfig = supportsMachineTypeAutoConfig
199200

200201
testSkipStr := generateTestSkip(testParams)
@@ -273,6 +274,9 @@ func generateTestSkip(testParams *TestParameters) string {
273274
if !supportsSkipBucketAccessCheck {
274275
skipTests = append(skipTests, "csi-skip-bucket-access-check")
275276
}
277+
278+
// TODO(hungpnguyen): remove this skip once we do 1.15.3 release or 1.16 since sidecar version filter will work correctly by then
279+
skipTests = append(skipTests, "disable-autoconfig")
276280
}
277281

278282
if !testParams.SupportMachineTypeAutoconfig {

0 commit comments

Comments
 (0)