Wire in bootstrap and token controllers.

This adds these to the list of controllers the Controller Manager can start.  But as these are alpha, they are also currently disabled by default.
This commit is contained in:
Joe Beda
2016-12-12 12:17:26 -08:00
parent da93009d91
commit 415e20877e
3 changed files with 43 additions and 1 deletions

View File

@@ -270,7 +270,10 @@ func KnownControllers() []string {
return sets.StringKeySet(newControllerInitializers()).List()
}
var ControllersDisabledByDefault = sets.NewString()
var ControllersDisabledByDefault = sets.NewString(
"bootstrapsigner",
"tokencleaner",
)
func newControllerInitializers() map[string]InitFunc {
controllers := map[string]InitFunc{}
@@ -291,6 +294,8 @@ func newControllerInitializers() map[string]InitFunc {
controllers["cronjob"] = startCronJobController
controllers["certificatesigningrequests"] = startCSRController
controllers["ttl"] = startTTLController
controllers["bootstrapsigner"] = startBootstrapSignerController
controllers["tokencleaner"] = startTokenCleanerController
return controllers
}