manager

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package manager contains the controller-runtime manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager = ctrl.Manager

Manager is the controller-runtime manager.

func New

func New(opts Options) (Manager, error)

New returns a new controller-runtime manager.

func NewFromConfig

func NewFromConfig(cfg *rest.Config, opts Options) (Manager, error)

NewFromConfig creates a new manager from the given config.

type Options

type Options struct {
	// MetricsAddr is the address to bind the metrics endpoint to.
	MetricsPort int
	// ProbeAddr is the address to bind the health probe endpoint to.
	ProbePort int
	// ShutdownTimeout is the timeout for shutting down the manager.
	ShutdownTimeout time.Duration
	// DisableCache disables the controller-runtime cache. This is primarily
	// used for testing.
	DisableCache bool
}

Options are the options for configuring the manager.

Jump to

Keyboard shortcuts

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