1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-15 12:17:56 +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") logger.Info("failed to wait for cache sync")
} }
for _, controller := range reportControllers { for i := range reportControllers {
go controller.run(signalCtx) go reportControllers[i].run(signalCtx)
} }
} }