mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
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:
commit
826f0910e4
@ -444,9 +444,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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user