mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fix volume expansion offline
This commit is contained in:
parent
2413b97219
commit
d19cb5cd52
@ -444,10 +444,12 @@ 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 {
|
||||||
|
conditionType := condition.Type
|
||||||
if conditionType == v1.PersistentVolumeClaimFileSystemResizePending {
|
if conditionType == v1.PersistentVolumeClaimFileSystemResizePending {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false, nil
|
return false, nil
|
||||||
})
|
})
|
||||||
if waitErr != nil {
|
if waitErr != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user