Skip to content

Commit

Permalink
Fix informer caches log messages
Browse files Browse the repository at this point in the history
Signed-off-by: Arve Knudsen <[email protected]>
  • Loading branch information
aknuds1 committed Dec 11, 2023
1 parent 0d56e56 commit cc2bde2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ func (c *RolloutController) Init() error {
go c.statefulSetsFactory.Start(c.stopCh)
go c.podsFactory.Start(c.stopCh)

// Wait until all informers' caches have been synched.
level.Info(c.logger).Log("msg", "informers cache is synching")
// Wait until all informer caches have been synced.
level.Info(c.logger).Log("msg", "informer caches are syncing")
if ok := cache.WaitForCacheSync(c.stopCh, c.statefulSetsInformer.HasSynced, c.podsInformer.HasSynced); !ok {
return errors.New("informers cache failed to sync")
return errors.New("informer caches failed to sync")
}
level.Info(c.logger).Log("msg", "informers cache has synced")
level.Info(c.logger).Log("msg", "informer caches have synced")

return nil
}
Expand Down

0 comments on commit cc2bde2

Please sign in to comment.