From a4310a38dd0fc766d3c96b8e9aa868cb5fb109af Mon Sep 17 00:00:00 2001 From: shivkumar dudhani Date: Tue, 20 Aug 2019 17:35:55 -0700 Subject: [PATCH] add missing files --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 2c2a950354..6d61e72d9a 100644 --- a/main.go +++ b/main.go @@ -67,7 +67,8 @@ func main() { // POLICY CONTROLLER // - reconciliation policy and policy violation // - 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) if err != nil { @@ -92,7 +93,7 @@ func main() { // GENERATE CONTROLLER // - 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) if err != nil {