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

add missing files

This commit is contained in:
shivkumar dudhani 2019-08-20 17:35:55 -07:00
parent 292a644bf8
commit a4310a38dd

View file

@ -67,7 +67,8 @@ func main() {
// POLICY CONTROLLER // POLICY CONTROLLER
// - reconciliation policy and policy violation // - reconciliation policy and policy violation
// - process policy on existing resources // - process policy on existing resources
// - status: violation count // - status aggregator: recieves stats when a policy is applied
// : updates the policy status
pc, err := policy.NewPolicyController(pclient, client, pInformer.Kyverno().V1alpha1().Policies(), pInformer.Kyverno().V1alpha1().PolicyViolations(), egen) pc, err := policy.NewPolicyController(pclient, client, pInformer.Kyverno().V1alpha1().Policies(), pInformer.Kyverno().V1alpha1().PolicyViolations(), egen)
if err != nil { if err != nil {
@ -92,7 +93,7 @@ func main() {
// GENERATE CONTROLLER // GENERATE CONTROLLER
// - watches for Namespace resource and generates resource based on the policy generate rule // - watches for Namespace resource and generates resource based on the policy generate rule
nsc := namespace.NewNamespaceController(pclient, client, kubeInformer.Core().V1().Namespaces(), pInformer.Kyverno().V1alpha1().Policies(), pInformer.Kyverno().V1alpha1().PolicyViolations(), egen) nsc := namespace.NewNamespaceController(pclient, client, kubeInformer.Core().V1().Namespaces(), pInformer.Kyverno().V1alpha1().Policies(), pInformer.Kyverno().V1alpha1().PolicyViolations(), pc.GetPolicyStatusAggregator(), egen)
tlsPair, err := initTLSPemPair(clientConfig, client) tlsPair, err := initTLSPemPair(clientConfig, client)
if err != nil { if err != nil {