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:
parent
2b6549fd5b
commit
43fc77c71f
1 changed files with 1 additions and 1 deletions
|
@ -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)")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue