Merge pull request #129234 from gnufied/automated-cherry-pick-of-#129085-upstream-release-1.32

Automated cherry pick of #129085: Fix volume expansion offline e2e
This commit is contained in:
Kubernetes Prow Robot 2024-12-20 08:48:08 +01:00 committed by GitHub
commit 826f0910e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -444,9 +444,11 @@ func WaitForPendingFSResizeCondition(ctx context.Context, pvc *v1.PersistentVolu
if len(inProgressConditions) == 0 { if len(inProgressConditions) == 0 {
return true, nil return true, nil
} }
conditionType := inProgressConditions[0].Type for _, condition := range inProgressConditions {
if conditionType == v1.PersistentVolumeClaimFileSystemResizePending { conditionType := condition.Type
return true, nil if conditionType == v1.PersistentVolumeClaimFileSystemResizePending {
return true, nil
}
} }
return false, nil return false, nil
}) })