manager

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	ctrl.Manager

	Opts ctrl.Options
}

Manager is a wrapper for controller-runtime ctrl.Manager and ctrl.Options

func New

func New(withOpts ...Option) (*Manager, error)

New creates a new controller-runtime manager wrapper with standard configuration.

type Option

type Option func(*ctrl.Options)

Option is a manager configuration option

func WithLeaderElection

func WithLeaderElection(enableLeaderElection bool) Option

WithLeaderElection enables leader election for the manager

func WithMetricsAddr

func WithMetricsAddr(addr string) Option

WithMetricsAddr sets the address the controller-runtime's metrics server binds to

func WithNamespace

func WithNamespace(namespace string) Option

WithNamespace sets the namespace the manager watches

Jump to

Keyboard shortcuts

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