1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-30 19:35:06 +00:00

Add rule to PolicyViolation event messages (#3787)

Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>

Co-authored-by: Jim Bugwadia <jim@nirmata.com>
This commit is contained in:
Frank Jogeleit 2022-05-03 20:35:42 +02:00 committed by GitHub
parent 2b6549fd5b
commit 43fc77c71f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ func buildPolicyEventMessage(resp *response.RuleResponse, resource response.Reso
fmt.Fprintf(&b, "%s %s", resource.Kind, resource.Name)
}
fmt.Fprintf(&b, ": %s", resp.Status.String())
fmt.Fprintf(&b, ": [%s] %s", resp.Name, resp.Status.String())
if blocked {
fmt.Fprintf(&b, " (blocked)")
}