1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/pkg/event/util.go

30 lines
548 B
Go
Raw Normal View History

2019-05-10 00:05:21 -07:00
package event
const eventSource = "policy-controller"
const eventWorkQueueName = "policy-controller-events"
const eventWorkerThreadCount = 1
2019-05-10 10:38:38 -07:00
2019-05-10 12:36:55 -07:00
//Info defines the event details
type Info struct {
2019-05-10 10:38:38 -07:00
Kind string
Resource string
Reason string
Message string
}
//MsgKey is an identified to determine the preset message formats
type MsgKey int
2019-06-05 17:43:59 -07:00
//Message id for pre-defined messages
2019-05-10 10:38:38 -07:00
const (
FResourcePolcy MsgKey = iota
FProcessRule
SPolicyApply
SRuleApply
FPolicyApplyBlockCreate
FPolicyApplyBlockUpdate
FPolicyApplyBlockUpdateRule
)