Skip to content

Commit b7b0505

Browse files
authored
[Bugfix] Tolerate pending resize volume flag (#634)
1 parent f9b9670 commit b7b0505

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/deployment/reconcile/action_pvc_resize.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ func (a *actionPVCResize) CheckProgress(ctx context.Context) (bool, bool, error)
129129
return false, true, err
130130
}
131131

132+
// If we are pending for FS to be resized - we need to proceed with mounting of PVC
133+
if k8sutil.IsPersistentVolumeClaimFileSystemResizePending(pvc) {
134+
return true, false, nil
135+
}
136+
132137
if requestedSize, ok := pvc.Spec.Resources.Requests[core.ResourceStorage]; ok {
133138
if volumeSize, ok := pvc.Status.Capacity[core.ResourceStorage]; ok {
134139
cmp := volumeSize.Cmp(requestedSize)

0 commit comments

Comments
 (0)