mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Bugfix] Tolerate pending resize volume flag (#634)
This commit is contained in:
parent
f9b9670f25
commit
b7b0505fc4
1 changed files with 5 additions and 0 deletions
|
@ -129,6 +129,11 @@ func (a *actionPVCResize) CheckProgress(ctx context.Context) (bool, bool, error)
|
|||
return false, true, err
|
||||
}
|
||||
|
||||
// If we are pending for FS to be resized - we need to proceed with mounting of PVC
|
||||
if k8sutil.IsPersistentVolumeClaimFileSystemResizePending(pvc) {
|
||||
return true, false, nil
|
||||
}
|
||||
|
||||
if requestedSize, ok := pvc.Spec.Resources.Requests[core.ResourceStorage]; ok {
|
||||
if volumeSize, ok := pvc.Status.Capacity[core.ResourceStorage]; ok {
|
||||
cmp := volumeSize.Cmp(requestedSize)
|
||||
|
|
Loading…
Reference in a new issue