Merge pull request #101987 from sky-philipalmeida/patch-1

Log if PV is still in use trying to delete it
This commit is contained in:
Kubernetes Prow Robot
2021-09-23 14:30:54 -07:00
committed by GitHub

View File

@@ -144,6 +144,7 @@ func (c *Controller) processPV(pvName string) error {
if !isUsed {
return c.removeFinalizer(pv)
}
klog.V(4).Infof("Keeping PV %s because it is being used", pvName)
}
if protectionutil.NeedToAddFinalizer(pv, volumeutil.PVProtectionFinalizer) {