Merge pull request #105 from mattmoyer/extend-readiness-check

Wait for informers to sync before we pass readiness check.
This commit is contained in:
Matt Moyer 2020-09-15 14:27:42 -05:00 committed by GitHub
commit 6faf224e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}