controller

package
v0.0.0-...-981e2ef Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToControllerList

func AddToControllerList(c Controller)

AddToControllerList register controllers.

func FormatGVKToLabelValue

func FormatGVKToLabelValue(GVK schema.GroupVersionKind) string

FormatGVKToLabelValue format the GVK as a valid label value.

func SetupControllers

func SetupControllers(mgr ctrl.Manager, logger logr.Logger) error

SetupControllers sets up all the registered controllers.

func WithExpectedLabel

func WithExpectedLabel(obj client.Object) bool

WithExpectedLabel assure the expected label (with value) is existing.

func WithExpectedLabelPredicates

func WithExpectedLabelPredicates() builder.Predicates

WithExpectedLabelPredicates creates predicates requiring expected label existing.

Types

type Controller

type Controller interface {
	// SetupWithManager registers reconcile controller to manager.
	SetupWithManager(mgr ctrl.Manager) error
}

Controller for doing reconcile.

Jump to

Keyboard shortcuts

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