1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

fix: reports not generated (#4743)

Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
Charles-Edouard Brétéché 2022-09-29 10:39:14 +02:00 committed by GitHub
parent bb2e193d44
commit 8e24dbece0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -475,9 +475,6 @@ func main() {
go certManager.Run(stopCh)
go policyCtrl.Run(2, stopCh)
metadataInformer.Start(stopCh)
metadataInformer.WaitForCacheSync(stopCh)
reportControllers := setupReportControllers(
backgroundScan,
admissionReports,
@ -488,6 +485,9 @@ func main() {
kyvernoInformer,
)
metadataInformer.Start(stopCh)
metadataInformer.WaitForCacheSync(stopCh)
for _, controller := range reportControllers {
go controller.Run(stopCh)
}