mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fix volume expansion offline
This commit is contained in:
parent
fd78b52967
commit
b555e6b2a2
@ -408,9 +408,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