Wait for informers to sync before we pass readiness check.
Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
parent
e428877473
commit
12f0997193
@ -133,6 +133,10 @@ func PrepareControllers(
|
|||||||
installationNamespaceK8sInformers.Start(ctx.Done())
|
installationNamespaceK8sInformers.Start(ctx.Done())
|
||||||
installationNamespacePinnipedInformers.Start(ctx.Done())
|
installationNamespacePinnipedInformers.Start(ctx.Done())
|
||||||
|
|
||||||
|
kubePublicNamespaceK8sInformers.WaitForCacheSync(ctx.Done())
|
||||||
|
installationNamespaceK8sInformers.WaitForCacheSync(ctx.Done())
|
||||||
|
installationNamespacePinnipedInformers.WaitForCacheSync(ctx.Done())
|
||||||
|
|
||||||
go controllerManager.Start(ctx)
|
go controllerManager.Start(ctx)
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user