use shared informers for BootstrapSigner controller

This commit is contained in:
wackxu
2017-11-14 21:43:20 +08:00
parent fe5b8fac86
commit 0ae647bf33
4 changed files with 114 additions and 81 deletions

View File

@@ -25,6 +25,8 @@ import (
func startBootstrapSignerController(ctx ControllerContext) (bool, error) {
bsc, err := bootstrap.NewBootstrapSigner(
ctx.ClientBuilder.ClientGoClientOrDie("bootstrap-signer"),
ctx.InformerFactory.Core().V1().Secrets(),
ctx.InformerFactory.Core().V1().ConfigMaps(),
bootstrap.DefaultBootstrapSignerOptions(),
)
if err != nil {