operator

package
v0.0.0-...-d7985ca Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(ctx context.Context, componentName string, config *rest.Config, cmw *informer.InformedWatcher) *zap.SugaredLogger

LoggingContextOrDie injects a logger into the returned context. The logger is configured by the ConfigMap `config-logging` and live updates the level.

Types

type Operator

type Operator struct {
	manager.Manager

	RESTConfig          *rest.Config
	KubernetesInterface kubernetes.Interface
	EventRecorder       events.Recorder
	Clock               clock.Clock
	// contains filtered or unexported fields
}

func NewOperator

func NewOperator() (context.Context, *Operator)

NewOperator instantiates a controller manager or panics

func (*Operator) Start

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

func (*Operator) WithControllers

func (o *Operator) WithControllers(ctx context.Context, controllers ...corecontroller.Controller) *Operator

func (*Operator) WithWebhooks

func (o *Operator) WithWebhooks(webhooks ...knativeinjection.ControllerConstructor) *Operator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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