mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
03cec01fb5
* feature: added new type of event, PolicySkipped Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com> * fix html docs Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com> Co-authored-by: shuting <shuting@nirmata.com>
20 lines
289 B
Go
20 lines
289 B
Go
package event
|
|
|
|
// Reason types of Event Reasons
|
|
type Reason int
|
|
|
|
const (
|
|
PolicyViolation Reason = iota
|
|
PolicyApplied
|
|
PolicyError
|
|
PolicySkipped
|
|
)
|
|
|
|
func (r Reason) String() string {
|
|
return [...]string{
|
|
"PolicyViolation",
|
|
"PolicyApplied",
|
|
"PolicyError",
|
|
"PolicySkipped",
|
|
}[r]
|
|
}
|