manager

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdxCompositionsBySynthesizer = ".spec.synthesizer"
	IdxCompositionsBySymphony    = ".compositionsBySymphony"
	IdxCompositionsByBinding     = ".compositionsByBinding"
	IdxSynthesizersByRef         = ".synthesizersByRef"
)
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 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 NewTypedLogConstructor added in v0.0.48

func NewTypedLogConstructor[T any](mgr ctrl.Manager, controllerName string) func(T) logr.Logger

func SingleEventHandler added in v0.0.10

func SingleEventHandler() handler.EventHandler

Types

type Options

type Options struct {
	leaderelection.Options
	ElectionLeaseDuration      time.Duration
	ElectionLeaseRenewDeadline time.Duration
	ElectionLeaseRetryPeriod   time.Duration

	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