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
commit b6924839ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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