1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/pkg/event/source.go
Charles-Edouard Brétéché 39d5ceb00c
refactor: event package (#6124)
* refactor: event package

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* more

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* kuttl tests

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* Update pkg/event/source.go

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-01-26 21:19:02 +00:00

17 lines
662 B
Go

package event
// Source of event generation
type Source string
const (
// AdmissionController : event generated in admission-control webhook
AdmissionController Source = "kyverno-admission"
// PolicyController : event generated in policy-controller
PolicyController Source = "kyverno-scan"
// GeneratePolicyController : event generated in generate policyController
GeneratePolicyController Source = "kyverno-generate"
// MutateExistingController : event generated for mutateExisting policies
MutateExistingController Source = "kyverno-mutate"
// CleanupController : event generated for cleanup policies
CleanupController Source = "kyverno-cleanup"
)