mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-18 02:06:52 +00:00
fix: block policy for missing matched kind (#3733)
Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com>
This commit is contained in:
parent
82c9c2d08b
commit
97f845124f
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ func (ws *WebhookServer) policyValidation(request *admissionv1.AdmissionRequest)
|
|||
response, err := policyvalidate.Validate(policy, ws.client, false, ws.openAPIController)
|
||||
if err != nil {
|
||||
logger.Error(err, "policy validation errors")
|
||||
return admissionutils.ResponseWithMessage(true, err.Error())
|
||||
return admissionutils.ResponseWithMessage(false, err.Error())
|
||||
}
|
||||
|
||||
if response != nil && len(response.Warnings) != 0 {
|
||||
|
|
Loading…
Add table
Reference in a new issue