Skip to content

Commit 3abfba4

Browse files
authored
Merge pull request #246 from gnufied/fix-panic-from-nil-error
Fix panic if unable to update PVC
2 parents d92de40 + daa9188 commit 3abfba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/resize_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (ctrl *resizeController) markControllerResizeInProgress(
4545
newPVC.Status.AllocatedResources = v1.ResourceList{v1.ResourceStorage: newSize}
4646
updatedPVC, err := ctrl.patchClaim(pvc, newPVC, true /* addResourceVersionCheck */)
4747
if err != nil {
48-
return nil, err
48+
return pvc, err
4949
}
5050
return updatedPVC, nil
5151
}

0 commit comments

Comments
 (0)