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:
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")
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue