Skip to content

Commit dad2757

Browse files
authored
Merge pull request kubernetes#129235 from gnufied/automated-cherry-pick-of-#129085-upstream-release-1.31
Automated cherry pick of kubernetes#129085: Fix volume expansion offline e2e
2 parents fd78b52 + b555e6b commit dad2757

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/e2e/storage/testsuites/volume_expand.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,11 @@ func WaitForPendingFSResizeCondition(ctx context.Context, pvc *v1.PersistentVolu
408408
if len(inProgressConditions) == 0 {
409409
return true, nil
410410
}
411-
conditionType := inProgressConditions[0].Type
412-
if conditionType == v1.PersistentVolumeClaimFileSystemResizePending {
413-
return true, nil
411+
for _, condition := range inProgressConditions {
412+
conditionType := condition.Type
413+
if conditionType == v1.PersistentVolumeClaimFileSystemResizePending {
414+
return true, nil
415+
}
414416
}
415417
return false, nil
416418
})

0 commit comments

Comments
 (0)