Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAllFieldIndexes ¶ added in v1.52.0
func AddAllFieldIndexes(ctx context.Context, i client.FieldIndexer) error
AddAllFieldIndexes adds all field indexes used by gardener-controller-manager to the given FieldIndexer (i.e. cache). Field indexes have to be added before the cache is started (i.e. before the manager is started).
func AddControllersToManager ¶ added in v1.52.0
func AddControllersToManager(mgr manager.Manager, cfg *config.ControllerManagerConfiguration) error
AddControllersToManager adds all controller-manager controllers to the given manager.
Types ¶
type LegacyControllerFactory ¶ added in v1.52.0
type LegacyControllerFactory struct { Manager manager.Manager Log logr.Logger Config *config.ControllerManagerConfiguration RESTConfig *rest.Config }
LegacyControllerFactory starts controller-manager's legacy controllers under leader election of the given manager for the purpose of gradually migrating to native controller-runtime controllers. Deprecated: this will be replaced by adding native controllers directly to the manager. New controllers should be implemented as native controller-runtime controllers right away and should be added to the manager directly.