controllerregistrar

package
v1.97.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "controller-registrar"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller added in v1.96.0

type Controller struct {
	AddToManagerFunc func(context.Context, manager.Manager, *operatorv1alpha1.Garden) error
	// contains filtered or unexported fields
}

Controller contains a function for registering a controller.

type Reconciler

type Reconciler struct {
	Manager     manager.Manager
	Controllers []Controller
}

Reconciler adds the controllers to the manager.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile performs the controller registration.

Jump to

Keyboard shortcuts

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