Fix volume expansion offline

This commit is contained in:
Hemant Kumar 2024-12-04 14:03:38 -05:00
parent 2413b97219
commit d19cb5cd52

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
}) })