manager

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdxPodsByComposition           = ".podsByComposition"
	IdxCompositionsBySynthesizer   = ".spec.synthesizer"
	IdxCompositionsBySymphony      = ".compositionsBySymphony"
	IdxResourceSlicesByComposition = ".resourceSlicesByComposition"
	IdxCompositionsByBinding       = ".compositionsByBinding"
	IdxSynthesizersByRef           = ".synthesizersByRef"

	CompositionNameLabelKey      = "eno.azure.io/composition-name"
	CompositionNamespaceLabelKey = "eno.azure.io/composition-namespace"
)
View Source
const (
	ManagerLabelKey   = "app.kubernetes.io/managed-by"
	ManagerLabelValue = "eno"
)

Variables

This section is empty.

Functions

func New

func New(logger logr.Logger, opts *Options) (ctrl.Manager, error)

func NewCompositionToResourceSliceHandler

func NewCompositionToResourceSliceHandler(cli client.Client) handler.EventHandler

func NewLogConstructor

func NewLogConstructor(mgr ctrl.Manager, controllerName string) func(*reconcile.Request) logr.Logger

func NewReconciler

func NewReconciler(logger logr.Logger, opts *Options) (ctrl.Manager, error)

func NewTest added in v0.0.2

func NewTest(logger logr.Logger, opts *Options) (ctrl.Manager, error)

func PodByCompIdxValueFromComp added in v0.0.6

func PodByCompIdxValueFromComp(comp client.Object) string

func PodByCompIdxValueFromNamespacedName added in v0.0.30

func PodByCompIdxValueFromNamespacedName(nn types.NamespacedName) string

func PodByCompIdxValueFromPod added in v0.0.6

func PodByCompIdxValueFromPod(po client.Object) string

func PodReferencesComposition added in v0.0.4

func PodReferencesComposition(pod *corev1.Pod) bool

func PodToCompMapFunc added in v0.0.4

func PodToCompMapFunc(ctx context.Context, obj client.Object) []reconcile.Request

func SingleEventHandler added in v0.0.10

func SingleEventHandler() handler.EventHandler

Types

type Options

type Options struct {
	leaderelection.Options
	Rest                    *rest.Config
	HealthProbeAddr         string
	MetricsAddr             string
	SynthesizerPodNamespace string // set in cmd from synthesis config

	// Only set by cmd in reconciler process
	CompositionNamespace string
	CompositionSelector  labels.Selector
	// contains filtered or unexported fields
}

func (*Options) Bind

func (o *Options) Bind(set *flag.FlagSet)

Jump to

Keyboard shortcuts

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