controllers

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 GenericControllerManager

type GenericControllerManager struct {
	manager.Manager
}

func (*GenericControllerManager) RegisterControllers

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

RegisterControllers registers a set of controllers to the controller manager

type Manager

type Manager interface {
	manager.Manager
	RegisterControllers(context.Context, ...Controller) Manager
}

Manager manages a set of controllers and webhooks.

func NewManagerOrDie

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

NewManagerOrDie instantiates a controller manager or panics

Directories

Path Synopsis
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
metrics
pod
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

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