1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

remove unused code

This commit is contained in:
Shuting Zhao 2019-10-16 10:33:28 -07:00
parent f820cb4c83
commit e4791e5828

View file

@ -110,7 +110,6 @@ func (ws *WebhookServer) HandleValidation(request *v1beta1.AdmissionRequest, pat
// and if there are any then we dont block the resource creation
// Even if one the policy being applied
if !isResponseSuccesful(engineResponses) && toBlockResource(engineResponses) {
resource.GetOwnerReferences()
policyviolation.CreatePV(ws.pvLister, ws.kyvernoClient, ws.client, engineResponses, true)
sendStat(true)
return false, getErrorMsg(engineResponses)