1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 01:46:55 +00:00
kyverno/pkg/policyviolation/util.go
2019-05-10 12:36:55 -07:00

18 lines
456 B
Go

package policyviolation
import policytype "github.com/nirmata/kube-policy/pkg/apis/policy/v1alpha1"
// Source for the events recorder
const violationEventSource = "policy-controller"
// Name for the workqueue to store the events
const workqueueViolationName = "Policy-Violations"
// Event Reason
const violationEventResrouce = "Violation"
//ViolationInfo describes the policyviolation details
type Info struct {
Policy string
policytype.Violation
}