operatorbootstrap

package
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddPodIndexersToManager operatorbootstrapinternal.ManagerFunc = func(mgr manager.Manager) {
		if err := mgr.GetFieldIndexer().IndexField(context.Background(), &v1.Pod{}, "spec.nodeName", func(o client.Object) []string {
			return []string{o.(*v1.Pod).Spec.NodeName}
		}); err != nil {
			panic(fmt.Sprintf("Failed to setup pod indexer, %s", err))
		}
	}
)

Functions

func Cancelled

func Cancelled() bool

func CustomSignalsHandler

func CustomSignalsHandler(additionalActionBeforeCancel func()) context.Context

func MustSetupController

func MustSetupController(err error)

Types

type Bootstrapper

type Bootstrapper struct {
	// contains filtered or unexported fields
}

func NewBootstrapper

func NewBootstrapper(ctx context.Context, operatorCfg operatorconfig.OperatorConfig, newOpts func() ctrl.Options, mgrFunc operatorbootstrapinternal.ManagerFunc) *Bootstrapper

func (*Bootstrapper) Context added in v0.1.2

func (b *Bootstrapper) Context() context.Context

func (*Bootstrapper) GetMgr

func (b *Bootstrapper) GetMgr() manager.Manager

func (*Bootstrapper) Run

func (b *Bootstrapper) Run()

func (*Bootstrapper) WithControllers

func (b *Bootstrapper) WithControllers(controllers ...KubernetesOperator) *Bootstrapper

type KubernetesOperator

type KubernetesOperator interface {
	reconcile.Reconciler
	SetupWithManager(mgr ctrl.Manager) error
}

Jump to

Keyboard shortcuts

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