manager

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package manager provides the Run helper that wires up all cyclops controllers and starts the controller-runtime manager.

Both cmd/manager/main.go and the integration test suite use this package so the production wiring and the test wiring stay in sync.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, mgr manager.Manager, deps Dependencies) error

Run registers the cyclops scheme, all three controllers, and metrics on the given manager, then starts the manager. It blocks until ctx is cancelled or the manager exits.

This function is the single source of truth for controller wiring. Both cmd/manager/main.go and the integration test suite call it so that the production wiring and the test wiring stay in sync.

Types

type Dependencies

type Dependencies struct {
	// CloudProvider is used by the CNR and CNS reconcilers to interact with
	// the cloud provider (e.g. AWS). Required.
	CloudProvider cloudprovider.CloudProvider

	// Notifier is used to push progress notifications (e.g. Slack). Optional.
	Notifier notifications.Notifier

	// Namespace is the Kubernetes namespace where CycleNodeRequests and
	// CycleNodeStatuses are watched.
	Namespace string

	// CNROptions configures the CycleNodeRequest transitioner.
	CNROptions cnrTransitioner.Options

	// CNSOptions configures the CycleNodeStatus transitioner.
	CNSOptions cnsTransitioner.Options

	// NodeOptions configures the node reconciler.
	NodeOptions nodecontroller.Options
}

Dependencies holds the external collaborators required to run cyclops. The zero value is valid for optional fields (Notifier may be nil).

Jump to

Keyboard shortcuts

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