Wait for informers to sync before we pass readiness check.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
Matt Moyer 2020-09-15 13:52:08 -05:00
parent e428877473
commit 12f0997193
No known key found for this signature in database
GPG Key ID: EAE88AD172C5AE2D

View File

@ -133,6 +133,10 @@ func PrepareControllers(
installationNamespaceK8sInformers.Start(ctx.Done())
installationNamespacePinnipedInformers.Start(ctx.Done())
kubePublicNamespaceK8sInformers.WaitForCacheSync(ctx.Done())
installationNamespaceK8sInformers.WaitForCacheSync(ctx.Done())
installationNamespacePinnipedInformers.WaitForCacheSync(ctx.Done())
go controllerManager.Start(ctx)
}, nil
}