operator

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator struct {
	// contains filtered or unexported fields
}

func NewOperator

func NewOperator(cfg OperatorConfig) *Operator

NewOperator creates a new Operator

func (*Operator) GetLogger

func (o *Operator) GetLogger() logr.Logger

GetLogger returns the logger associated with this operator

func (*Operator) GetManager

func (o *Operator) GetManager() manager.Manager

GetManager returns the controller manager associated with this operator

func (*Operator) GetOperatorChannel

func (o *Operator) GetOperatorChannel() chan event.Event

GetOperatorChannel returns the channel on which the operator event dispatcher listens

func (*Operator) ProgressReport added in v0.18.0

func (o *Operator) ProgressReport() int

ProgressReport returns the number of ongoing operations (rendering processes, updates, etc) plus the number of throttled rendering processes in progress.

func (*Operator) SetProgressReporters added in v0.18.0

func (o *Operator) SetProgressReporters(reporters ...config.ProgressReporter)

SetProgressReporters sets the operator subsystems that need to be queried to check the number of operations in progrses. This can be used to implement graceful shutdown.

func (*Operator) Start

func (o *Operator) Start(ctx context.Context) error

type OperatorConfig

type OperatorConfig struct {
	Manager        manager.Manager
	ControllerName string
	RenderCh       chan event.Event
	ConfigCh       chan event.Event
	UpdaterCh      chan event.Event
	Logger         logr.Logger
}

Jump to

Keyboard shortcuts

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