Help us shape the future of Go! Take the 2026 Go Developer Survey

controllerregistrar

package
v1.154.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 2

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 {
	Name             string
	AddToManagerFunc func(context.Context, manager.Manager, *operatorv1alpha1.Garden) (bool, error)
	// contains filtered or unexported fields
}

Controller contains a function for registering a controller.

type Reconciler

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

	OperatorCancel context.CancelFunc
}

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