mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 15:37:19 +00:00
* cleanup events Signed-off-by: Jim Bugwadia <jim@nirmata.com> * fix sonatype issues Signed-off-by: Jim Bugwadia <jim@nirmata.com> Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com> Co-authored-by: shuting <shuting@nirmata.com>
18 lines
254 B
Go
18 lines
254 B
Go
package event
|
|
|
|
//Reason types of Event Reasons
|
|
type Reason int
|
|
|
|
const (
|
|
PolicyViolation Reason = iota
|
|
PolicyApplied
|
|
PolicyError
|
|
)
|
|
|
|
func (r Reason) String() string {
|
|
return [...]string{
|
|
"PolicyViolation",
|
|
"PolicyApplied",
|
|
"PolicyError",
|
|
}[r]
|
|
}
|