mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
log action and message when creating event (#12092)
Signed-off-by: Renato Vassão <renatomvd@hotmail.com> Co-authored-by: Jim Bugwadia <jim@nirmata.com>
This commit is contained in:
parent
e9e82f8832
commit
d7751856ba
1 changed files with 2 additions and 2 deletions
|
@ -90,11 +90,11 @@ func (gen *controller) Add(infos ...Info) {
|
|||
continue
|
||||
}
|
||||
if gen.omitEvents.Has(string(info.Reason)) {
|
||||
logger.V(6).Info("omitting event", "kind", info.Regarding.Kind, "name", info.Regarding.Name, "namespace", info.Regarding.Namespace, "reason", info.Reason)
|
||||
logger.V(6).Info("omitting event", "kind", info.Regarding.Kind, "name", info.Regarding.Name, "namespace", info.Regarding.Namespace, "reason", info.Reason, "action", info.Action, "note", info.Message)
|
||||
continue
|
||||
}
|
||||
gen.emitEvent(info)
|
||||
logger.V(6).Info("creating event", "kind", info.Regarding.Kind, "name", info.Regarding.Name, "namespace", info.Regarding.Namespace, "reason", info.Reason)
|
||||
logger.V(6).Info("creating event", "kind", info.Regarding.Kind, "name", info.Regarding.Name, "namespace", info.Regarding.Namespace, "reason", info.Reason, "action", info.Action, "note", info.Message)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue