manager

package
v1.30.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0, MIT Imports: 8 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

type Option

type Option func(*ctrl.Options)

Option is a manager configuration option

func WithDisableCacheFor

func WithDisableCacheFor(objs ...client.Object) Option

WithDisableCacheFor disables the cache for the given objects

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