1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/event/reason.go
vivek kumar sahu 03cec01fb5
feature: added new type of event, PolicySkipped (#4251)
* 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>
2022-07-28 14:01:50 +08:00

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