operator

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 40 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildInfo = opmetrics.NewPrometheusGauge(
		crmetrics.Registry,
		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
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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