operator

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureGlobalLoggers added in v0.28.0

func ConfigureGlobalLoggers(ctx context.Context)

ConfigureGlobalLoggers sets up any package-wide loggers like "log" or "klog" that are utilized by other packages to use the configured *zap.SugaredLogger from the context

func NewLogger

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

NewLogger returns a configured *zap.SugaredLogger. The logger is configured by the ConfigMap `config-logging` and live updates the level.

Types

type Operator

type Operator struct {
	manager.Manager

	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