controller

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 23 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
	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.

func (*LegacyControllerFactory) Start added in v1.52.0

Start starts all legacy controllers.

Directories

Path Synopsis
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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