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:
parent
144afb6f0f
commit
90a62e76ce
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue