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:
parent
f820cb4c83
commit
e4791e5828
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue