Documentation ¶
Index ¶
Constants ¶
View Source
const ( ControllerAgentName = "kafka-trigger-controller" FinalizerName = "kafka.triggers.eventing.knative.dev" )
View Source
const ( NamespacedControllerAgentName = "kafka-namespaced-trigger-controller" NamespacedFinalizerName = "kafka.namespaced.triggers.eventing.knative.dev" )
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewNamespacedController ¶ added in v0.34.0
Types ¶
type FlagsHolder ¶ added in v0.34.0
type NamespacedReconciler ¶ added in v0.34.0
type NamespacedReconciler struct { *base.Reconciler *FlagsHolder BrokerLister eventinglisters.BrokerLister ConfigMapLister corelisters.ConfigMapLister EventingClient eventingclientset.Interface Resolver *resolver.URIResolver Env *config.Env NewKafkaClusterAdminClient kafka.NewClusterAdminClientFunc NewKafkaClient kafka.NewClientFunc InitOffsetsFunc kafka.InitOffsetsFunc KafkaFeatureFlags *apisconfig.KafkaFeatureFlags }
func (*NamespacedReconciler) FinalizeKind ¶ added in v0.34.0
func (r *NamespacedReconciler) FinalizeKind(ctx context.Context, trigger *eventing.Trigger) reconciler.Event
func (*NamespacedReconciler) ReconcileKind ¶ added in v0.34.0
func (r *NamespacedReconciler) ReconcileKind(ctx context.Context, trigger *eventing.Trigger) reconciler.Event
type Reconciler ¶
type Reconciler struct { *base.Reconciler *FlagsHolder BrokerLister eventinglisters.BrokerLister ConfigMapLister corelisters.ConfigMapLister EventingClient eventingclientset.Interface Resolver *resolver.URIResolver Env *config.Env BrokerClass string DataPlaneConfigMapLabeler base.ConfigMapOption KafkaFeatureFlags *apisconfig.KafkaFeatureFlags // NewKafkaClusterAdminClient creates new sarama ClusterAdmin. It's convenient to add this as Reconciler field so that we can // mock the function used during the reconciliation loop. NewKafkaClusterAdminClient kafka.NewClusterAdminClientFunc // NewKafkaClient creates new sarama Client. It's convenient to add this as Reconciler field so that we can // mock the function used during the reconciliation loop. NewKafkaClient kafka.NewClientFunc // InitOffsetsFunc initialize offsets for a provided set of topics and a provided consumer group id. // It's convenient to add this as Reconciler field so that we can mock the function used during the // reconciliation loop. InitOffsetsFunc kafka.InitOffsetsFunc }
func (*Reconciler) FinalizeKind ¶
func (r *Reconciler) FinalizeKind(ctx context.Context, trigger *eventing.Trigger) reconciler.Event
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, trigger *eventing.Trigger) reconciler.Event
Source Files ¶
Click to show internal directories.
Click to hide internal directories.