Fix lint warnings in pkg/controller/bootstrap

This commit is contained in:
Peter McAlpine
2019-02-26 14:51:44 -05:00
parent aa5fda22f2
commit 4cfcf0519d
4 changed files with 33 additions and 35 deletions

View File

@@ -25,11 +25,11 @@ import (
)
func startBootstrapSignerController(ctx ControllerContext) (http.Handler, bool, error) {
bsc, err := bootstrap.NewBootstrapSigner(
bsc, err := bootstrap.NewSigner(
ctx.ClientBuilder.ClientOrDie("bootstrap-signer"),
ctx.InformerFactory.Core().V1().Secrets(),
ctx.InformerFactory.Core().V1().ConfigMaps(),
bootstrap.DefaultBootstrapSignerOptions(),
bootstrap.DefaultSignerOptions(),
)
if err != nil {
return nil, true, fmt.Errorf("error creating BootstrapSigner controller: %v", err)