controller

package
v1.56.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 22 Imported by: 2

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
}

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.

func (*LegacyControllerFactory) Start added in v1.52.0

Start starts all legacy controllers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL