controllers

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize added in v0.15.0

func Initialize(injectCloudProvider func(context.Context, cloudprovider.Options) cloudprovider.CloudProvider)

func LoggingContextOrDie added in v0.15.0

func LoggingContextOrDie(config *rest.Config, cmw *informer.InformedWatcher) context.Context

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

func NewManagerOrDie

func NewManagerOrDie(ctx context.Context, config *rest.Config, options controllerruntime.Options) manager.Manager

NewManagerOrDie instantiates a controller manager or panics

func RegisterControllers added in v0.15.0

func RegisterControllers(ctx context.Context, m manager.Manager, controllers ...Controller) manager.Manager

RegisterControllers registers a set of controllers to the controller manager

Types

type Controller

type Controller interface {
	// Reconcile hands a hydrated kubernetes resource to the controller for
	// reconciliation. Any changes made to the resource's status are persisted
	// after Reconcile returns, even if it returns an error.
	Reconcile(context.Context, reconcile.Request) (reconcile.Result, error)
	// Register will register the controller with the manager
	Register(context.Context, manager.Manager) error
}

Controller is an interface implemented by Karpenter custom resources.

type HealthCheck added in v0.16.1

type HealthCheck interface {
	LivenessProbe(req *http.Request) error
}

Directories

Path Synopsis
metrics
pod

Jump to

Keyboard shortcuts

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