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

fix: controllers start in loop (#4815)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2022-10-05 15:40:54 +02:00 committed by GitHub
parent 144afb6f0f
commit 90a62e76ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -539,8 +539,8 @@ func main() {
logger.Info("failed to wait for cache sync")
}
for _, controller := range reportControllers {
go controller.run(signalCtx)
for i := range reportControllers {
go reportControllers[i].run(signalCtx)
}
}