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:
parent
042bc64549
commit
57f770241e
1 changed files with 0 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue