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:
parent
bb2e193d44
commit
8e24dbece0
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue