Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ved Ratan <[email protected]>
  • Loading branch information
VedRatan committed Jun 19, 2024
1 parent f43f27c commit 7584f84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/reports-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -114,7 +114,7 @@ func createReportControllers(
kyvernoV1.Policies(),
kyvernoV1.ClusterPolicies(),
vapInformer,
kyvernoV2alpha1.PolicyExceptions(),
kyvernoV2beta1.PolicyExceptions(),
kubeInformer.Core().V1().Namespaces(),
resourceReportController,
backgroundScanInterval,
Expand Down
8 changes: 4 additions & 4 deletions pkg/controllers/report/background/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 7584f84

Please sign in to comment.