Skip to content

Commit

Permalink
Merge pull request #101 from zhucan/bugfix-100
Browse files Browse the repository at this point in the history
sidecar crash
  • Loading branch information
k8s-ci-robot authored Dec 20, 2021
2 parents f01cc72 + 85bb6f9 commit 4f3f6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/pv_monitor_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (ctrl *PVMonitorController) checkPVWorker() {
// PV was deleted in the meantime, ignore.
ctrl.Lock()
// delete pv from cache here so that we do not need to handle pv deletion events
delete(ctrl.pvEnqueued, pv.Name)
delete(ctrl.pvEnqueued, pvName)
ctrl.Unlock()
klog.V(3).Infof("PV %q deleted, ignoring", pvName)
return
Expand Down

0 comments on commit 4f3f6a8

Please sign in to comment.