1
0
Fork 0
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:
Adam Janikowski 2020-09-10 10:11:28 +02:00 committed by GitHub
parent f9b9670f25
commit b7b0505fc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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