1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-08 10:04:25 +00:00

remove commented code

This commit is contained in:
shivkumar dudhani 2019-08-21 14:18:36 -07:00
parent 042bc64549
commit 57f770241e

View file

@ -601,10 +601,6 @@ func (m *PolicyViolationControllerRefManager) adoptPolicyViolation(pv *kyverno.P
glog.Errorf("failed to add owner reference %v for PolicyViolation %s: %v", pOwnerRef, pv.Name, err)
return err
}
// addControllerPatch := fmt.Sprintf(
// `{"metadata":{"ownerReferences":[{"apiVersion":"%s","kind":"%s","name":"%s","uid":"%s","controller":true,"blockOwnerDeletion":true}],"uid":"%s"}}`,
// m.controllerKind.GroupVersion(), m.controllerKind.Kind,
// m.Controller.GetName(), m.Controller.GetUID(), pv.UID)
return m.pvControl.PatchPolicyViolation(pv.Name, addControllerPatch)
}