Documentation
¶
Overview ¶
Package reconciler contains constants shared by reconcilers.
Index ¶
- Constants
- func GetStatefulBridgeID(object metav1.Object) string
- func MakeGenericLabels(adapterName string, componentName string) labels.Set
- func MakeObsEnv(cfg source.ConfigAccessor) []corev1.EnvVar
- func MakeServiceEnv(name, namespace string) []corev1.EnvVar
- func PropagateCommonLabels(object kmeta.OwnerRefable, genericLabels labels.Set) labels.Set
- type KServiceReconciler
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 MakeGenericLabels ¶ added in v1.15.0
MakeGenericLabels returns generic labels set.
func MakeObsEnv ¶
func MakeObsEnv(cfg source.ConfigAccessor) []corev1.EnvVar
MakeObsEnv adds support for observability configs
func MakeServiceEnv ¶
MakeServiceEnv Adds default environment variables
func PropagateCommonLabels ¶ added in v1.15.0
PropagateCommonLabels adds common labels to the existing label set.
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. |