Documentation
¶
Overview ¶
Package reconciler contains constants shared by reconcilers.
Index ¶
Constants ¶
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 ¶
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 ¶
MakeAdapterLabels adds generic label generation
func MakeObsEnv ¶
func MakeObsEnv(cfg source.ConfigAccessor) []corev1.EnvVar
MakeObsEnv adds support for observability configs
func MakeServiceEnv ¶
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. |