From 0831b1c714f077eb75e1dfa0dadde78d2b392edb Mon Sep 17 00:00:00 2001 From: ajanikow <12255597+ajanikow@users.noreply.github.com> Date: Thu, 10 Sep 2020 07:40:03 +0000 Subject: [PATCH] Tolerate pending resize volume flag --- pkg/deployment/reconcile/action_pvc_resize.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/deployment/reconcile/action_pvc_resize.go b/pkg/deployment/reconcile/action_pvc_resize.go index 2feaf88fa..649c0ec86 100644 --- a/pkg/deployment/reconcile/action_pvc_resize.go +++ b/pkg/deployment/reconcile/action_pvc_resize.go @@ -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)