Documentation ¶
Index ¶
- Constants
- func New(logger logr.Logger, opts *Options) (ctrl.Manager, error)
- func NewCompositionToResourceSliceHandler(cli client.Client) handler.EventHandler
- func NewLogConstructor(mgr ctrl.Manager, controllerName string) func(*reconcile.Request) logr.Logger
- func NewReconciler(logger logr.Logger, opts *Options) (ctrl.Manager, error)
- func NewTest(logger logr.Logger, opts *Options) (ctrl.Manager, error)
- func PodByCompIdxValueFromComp(comp client.Object) string
- func PodByCompIdxValueFromPod(po client.Object) string
- func PodReferencesComposition(pod *corev1.Pod) bool
- func PodToCompMapFunc(ctx context.Context, obj client.Object) []reconcile.Request
- type Options
Constants ¶
View Source
const ( IdxPodsByComposition = ".podsByComposition" IdxCompositionsBySynthesizer = ".spec.synthesizer" IdxCompositionsBySymphony = ".compositionsBySymphony" IdxResourceSlicesByComposition = ".resourceSlicesByComposition" 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 NewCompositionToResourceSliceHandler ¶
func NewCompositionToResourceSliceHandler(cli client.Client) handler.EventHandler
func NewLogConstructor ¶
func PodByCompIdxValueFromComp ¶ added in v0.0.6
func PodByCompIdxValueFromPod ¶ added in v0.0.6
func PodReferencesComposition ¶ added in v0.0.4
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 }
Click to show internal directories.
Click to hide internal directories.