Merge pull request #129085 from gnufied/fix-e2e-offline-expansion

Fix volume expansion offline e2e
This commit is contained in:
Kubernetes Prow Robot 2024-12-12 05:29:55 +00:00 committed by GitHub
commit eb1a84ae4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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