operator

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 40 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildInfo = prometheus.NewGaugeVec(
	prometheus.GaugeOpts{
		Namespace: metrics.Namespace,
		Name:      "build_info",
		Help:      "A metric with a constant '1' value labeled by version from which karpenter was built.",
	},
	[]string{"version", "goversion", "goarch", "commit"},
)
View Source
var Version = "unspecified"

Version is the karpenter app version injected during compilation when using the Makefile

Functions

This section is empty.

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 ...controller.Controller) *Operator

func (*Operator) WithWebhooks

func (o *Operator) WithWebhooks(ctx context.Context, ctors ...knativeinjection.ControllerConstructor) *Operator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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