diff --git a/cmd/reports-controller/main.go b/cmd/reports-controller/main.go index 4df5458ce1c2..1612f6c6a13d 100644 --- a/cmd/reports-controller/main.go +++ b/cmd/reports-controller/main.go @@ -63,7 +63,7 @@ func createReportControllers( } kyvernoV1 := kyvernoInformer.Kyverno().V1() - kyvernoV2alpha1 := kyvernoInformer.Kyverno().V2alpha1() + kyvernoV2beta1 := kyvernoInformer.Kyverno().V2beta1() if backgroundScan || admissionReports { resourceReportController := resourcereportcontroller.NewController( client, @@ -114,7 +114,7 @@ func createReportControllers( kyvernoV1.Policies(), kyvernoV1.ClusterPolicies(), vapInformer, - kyvernoV2alpha1.PolicyExceptions(), + kyvernoV2beta1.PolicyExceptions(), kubeInformer.Core().V1().Namespaces(), resourceReportController, backgroundScanInterval, diff --git a/pkg/controllers/report/background/controller.go b/pkg/controllers/report/background/controller.go index 8aa62d768078..ad84ba277be3 100644 --- a/pkg/controllers/report/background/controller.go +++ b/pkg/controllers/report/background/controller.go @@ -11,9 +11,9 @@ import ( policyreportv1alpha2 "github.com/kyverno/kyverno/api/policyreport/v1alpha2" "github.com/kyverno/kyverno/pkg/client/clientset/versioned" kyvernov1informers "github.com/kyverno/kyverno/pkg/client/informers/externalversions/kyverno/v1" - kyvernov2alpha1informers "github.com/kyverno/kyverno/pkg/client/informers/externalversions/kyverno/v2alpha1" + kyvernov2beta1informers "github.com/kyverno/kyverno/pkg/client/informers/externalversions/kyverno/v2beta1" kyvernov1listers "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v1" - kyvernov2alpha1listers "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v2alpha1" + kyvernov2beta1listers "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v2beta1" "github.com/kyverno/kyverno/pkg/clients/dclient" "github.com/kyverno/kyverno/pkg/config" "github.com/kyverno/kyverno/pkg/controllers" @@ -58,7 +58,7 @@ type controller struct { polLister kyvernov1listers.PolicyLister cpolLister kyvernov1listers.ClusterPolicyLister vapLister admissionregistrationv1alpha1listers.ValidatingAdmissionPolicyLister - polexLister kyvernov2alpha1listers.PolicyExceptionLister + polexLister kyvernov2beta1listers.PolicyExceptionLister bgscanrLister cache.GenericLister cbgscanrLister cache.GenericLister nsLister corev1listers.NamespaceLister @@ -85,7 +85,7 @@ func NewController( polInformer kyvernov1informers.PolicyInformer, cpolInformer kyvernov1informers.ClusterPolicyInformer, vapInformer admissionregistrationv1alpha1informers.ValidatingAdmissionPolicyInformer, - polexInformer kyvernov2alpha1informers.PolicyExceptionInformer, + polexInformer kyvernov2beta1informers.PolicyExceptionInformer, nsInformer corev1informers.NamespaceInformer, metadataCache resource.MetadataCache, forceDelay time.Duration,