Merge pull request #105 from mattmoyer/extend-readiness-check
Wait for informers to sync before we pass readiness check.
This commit is contained in:
commit
6faf224e20
@ -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