diff --git a/cmd/kyverno/main.go b/cmd/kyverno/main.go index a30ce205f4..6ada959df6 100644 --- a/cmd/kyverno/main.go +++ b/cmd/kyverno/main.go @@ -191,7 +191,6 @@ func createrLeaderControllers( kubeClient, kyvernoClient, dynamicClient.Discovery(), - kyvernoInformer.Kyverno().V1().Policies(), kyvernoInformer.Kyverno().V1().ClusterPolicies(), kubeInformer.Admissionregistration().V1alpha1().ValidatingAdmissionPolicies(), kubeInformer.Admissionregistration().V1alpha1().ValidatingAdmissionPolicyBindings(), diff --git a/pkg/controllers/validatingadmissionpolicy-generate/controller.go b/pkg/controllers/validatingadmissionpolicy-generate/controller.go index 9a9ed97c33..97a792a71d 100644 --- a/pkg/controllers/validatingadmissionpolicy-generate/controller.go +++ b/pkg/controllers/validatingadmissionpolicy-generate/controller.go @@ -57,7 +57,6 @@ func NewController( client kubernetes.Interface, kyvernoClient versioned.Interface, discoveryClient dclient.IDiscovery, - polInformer kyvernov1informers.PolicyInformer, cpolInformer kyvernov1informers.ClusterPolicyInformer, vapInformer admissionregistrationv1alpha1informers.ValidatingAdmissionPolicyInformer, vapbindingInformer admissionregistrationv1alpha1informers.ValidatingAdmissionPolicyBindingInformer,