reconciler

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package reconciler contains constants shared by reconcilers.

Index

Constants

View Source
const (
	LabelBridgeUsedByPrefix  = "flow.triggermesh.io/used-by."
	LabelValueBridgeDominant = "dominant"

	// Bridge identifier for stateful flows
	EnvBridgeID = "EVENTS_BRIDGE_IDENTIFIER"
)

Stateful events related

Variables

This section is empty.

Functions

func GetStatefulBridgeID

func GetStatefulBridgeID(object metav1.Object) string

GetStatefulBridgeID returns the BridgeID based on an object metadata.

All bridge components controlled by Triggerflow have labels informing their relation with the bridges they are part of. A component can only have one dominant bridge, which is the one it synchronizes with. This function uses that label to retrieve the bridge name and use it as unique ID.

func MakeAdapterLabels

func MakeAdapterLabels(adapterName, name string) labels.Set

MakeAdapterLabels adds generic label generation

func MakeObsEnv

func MakeObsEnv(cfg source.ConfigAccessor) []corev1.EnvVar

MakeObsEnv adds support for observability configs

func MakeServiceEnv

func MakeServiceEnv(name, namespace string) []corev1.EnvVar

MakeServiceEnv Adds default environment variables

Types

type KServiceReconciler

type KServiceReconciler interface {
	ReconcileKService(context.Context, kmeta.OwnerRefable, *servingv1.Service) (*servingv1.Service, pkgreconciler.Event)
}

KServiceReconciler performs reconciliation for Knative services

func NewKServiceReconciler

func NewKServiceReconciler(servingClientSet servingclientset.Interface, servingLister servinglisters.ServiceLister) KServiceReconciler

NewKServiceReconciler creates the default implementation of KService reconciler.

Directories

Path Synopsis
Package testing contains test helpers for reconcilers.
Package testing contains test helpers for reconcilers.

Jump to

Keyboard shortcuts

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