# Functions
LeaderElectionNameID returns a leader election ID for the given name.
LogErrAndExit logs the given error with msg and keysAndValues and calls `os.Exit(1)`.
NewOptionAggregator instantiates a new OptionAggregator and registers all given options.
NewSwitchOptions creates new SwitchOptions with the given initial pairs.
PrefixFlagger creates a flagger that prefixes all its flags with the given prefix.
PrefixOption creates an option that prefixes all its flags with the given prefix.
Switch binds the given name to the given AddToManager function.
# Constants
DisableFlag is the name of the command line flag to disable individual controllers.
KubeconfigFlag is the name of the command line flag to specify a kubeconfig used to retrieve a rest.Config for a manager.Manager.
LeaderElectionFlag is the name of the command line flag to specify whether to do leader election or not.
LeaderElectionIDFlag is the name of the command line flag to specify the leader election ID.
LeaderElectionNamespaceFlag is the name of the command line flag to specify the leader election namespace.
MasterURLFlag is the name of the command line flag to specify the master URL override for a rest.Config of a manager.Manager.
MaxConcurrentReconcilesFlag is the name of the command line flag to specify the maximum number of concurrent reconciliations a controller can do.
# Variables
BuildConfigFromFlags creates a build configuration from the given flags.
Exit calls os.Exit.
Getenv obtains the environment variable with the given name.
InClusterConfig obtains the current in-cluster config.
Log is log.Log.
RecommendedHomeFile is the recommended location of the kubeconfig.
# Structs
ControllerConfig is a completed controller configuration.
ControllerOptions are command line options that can be set for controller.Options.
ManagerConfig is a completed manager configuration.
ManagerOptions are command line options that can be set for manager.Options.
NameToAddToManagerFunc binds a specific name to a controller's AddToManager function.
RESTConfig is a completed REST configuration.
RESTOptions are command line options that can be set for rest.Config.
SwitchConfig is the completed configuration of SwitchOptions.
SwitchOptions are options to build an AddToManager function that filters the disabled controllers.
# Type aliases
OptionAggregator is a builder that aggregates multiple options.