// RunServiceAccountsController starts the service account controller func (c *MasterConfig) RunServiceAccountsController() { if len(c.Options.ServiceAccountConfig.ManagedNames) == 0 { glog.Infof("Skipped starting Service Account Manager, no managed names specified") return } options := sacontroller.DefaultServiceAccountsControllerOptions() options.ServiceAccounts = []kapi.ServiceAccount{} for _, saName := range c.Options.ServiceAccountConfig.ManagedNames { sa := kapi.ServiceAccount{} sa.Name = saName options.ServiceAccounts = append(options.ServiceAccounts, sa) } sacontroller.NewServiceAccountsController(clientadapter.FromUnversionedClient(c.KubeClient()), options).Run() }