Fix volume expansion offline

This commit is contained in:
Hemant Kumar 2024-12-04 14:03:38 -05:00
parent a2f2103446
commit be8a74d952

View File

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