mirror of
https://github.com/rancher/norman.git
synced 2025-09-01 15:18:20 +00:00
Fix startup issues
This commit is contained in:
@@ -98,13 +98,14 @@ func (g *genericController) sync(ctx context.Context) error {
|
||||
DeleteFunc: g.queueObject,
|
||||
})
|
||||
|
||||
logrus.Infof("Starting %s Controller", g.name)
|
||||
logrus.Infof("Syncing %s Controller", g.name)
|
||||
|
||||
go g.informer.Run(ctx.Done())
|
||||
|
||||
if !cache.WaitForCacheSync(ctx.Done(), g.informer.HasSynced) {
|
||||
return fmt.Errorf("failed to sync controller %s", g.name)
|
||||
}
|
||||
logrus.Infof("Syncing %s Controller Done", g.name)
|
||||
|
||||
g.synced = true
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user