1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 15:37:19 +00:00
kyverno/pkg/event/reason.go
Jim Bugwadia 4f8eab76ce
cleanup event messages and sources (#3741)
* 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>
2022-05-02 05:14:32 +00:00

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]
}