func init() { … }
const ControllerStartJitter …
const ConfigzName …
func NewControllerManagerCommand() *cobra.Command { … }
func ResyncPeriod(c *config.CompletedConfig) func() time.Duration { … }
func Run(ctx context.Context, c *config.CompletedConfig) error { … }
type ControllerContext …
func (c ControllerContext) IsControllerEnabled(controllerDescriptor *ControllerDescriptor) bool { … }
type InitFunc …
type ControllerDescriptor …
func (r *ControllerDescriptor) Name() string { … }
func (r *ControllerDescriptor) GetInitFunc() InitFunc { … }
func (r *ControllerDescriptor) GetRequiredFeatureGates() []featuregate.Feature { … }
func (r *ControllerDescriptor) GetAliases() []string { … }
func (r *ControllerDescriptor) IsDisabledByDefault() bool { … }
func (r *ControllerDescriptor) IsCloudProviderController() bool { … }
func (r *ControllerDescriptor) RequiresSpecialHandling() bool { … }
func KnownControllers() []string { … }
func ControllerAliases() map[string]string { … }
func ControllersDisabledByDefault() []string { … }
func NewControllerDescriptors() map[string]*ControllerDescriptor { … }
func CreateControllerContext(ctx context.Context, s *config.CompletedConfig, rootClientBuilder, clientBuilder clientbuilder.ControllerClientBuilder) (ControllerContext, error) { … }
func StartControllers(ctx context.Context, controllerCtx ControllerContext, controllerDescriptors map[string]*ControllerDescriptor,
unsecuredMux *mux.PathRecorderMux, healthzHandler *controllerhealthz.MutableHealthzHandler) error { … }
func StartController(ctx context.Context, controllerCtx ControllerContext, controllerDescriptor *ControllerDescriptor,
unsecuredMux *mux.PathRecorderMux) (healthz.HealthChecker, error) { … }
func newServiceAccountTokenControllerDescriptor(rootClientBuilder clientbuilder.ControllerClientBuilder) *ControllerDescriptor { … }
func startServiceAccountTokenController(ctx context.Context, controllerContext ControllerContext, controllerName string, rootClientBuilder clientbuilder.ControllerClientBuilder) (controller.Interface, bool, error) { … }
func readCA(file string) ([]byte, error) { … }
func createClientBuilders(c *config.CompletedConfig) (clientBuilder clientbuilder.ControllerClientBuilder, rootClientBuilder clientbuilder.ControllerClientBuilder) { … }
func leaderElectAndRun(ctx context.Context, c *config.CompletedConfig, lockIdentity string, electionChecker *leaderelection.HealthzAdaptor, resourceLock string, leaseName string, callbacks leaderelection.LeaderCallbacks) { … }
func filteredControllerDescriptors(controllerDescriptors map[string]*ControllerDescriptor, filterFunc leadermigration.FilterFunc, expected leadermigration.FilterResult) map[string]*ControllerDescriptor { … }