Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KafkaSourceScheduler is the key for the scheduler map for any KafkaSource. // Keep this constant lowercase. KafkaSourceScheduler = "kafkasource" // KafkaTriggerScheduler is the key for the scheduler map for any Kafka Trigger. // Keep this constant lowercase. KafkaTriggerScheduler = "trigger" // KafkaChannelScheduler is the key for the scheduler map for any KafkaChannel. // Keep this constant lowercase. KafkaChannelScheduler = "kafkachannel" // ConfigKafkaSchedulerName is the name of the ConfigMap to configure the scheduler. ConfigKafkaSchedulerName = "config-kafka-scheduler" // ConfigKafkaDeSchedulerName is the name of the ConfigMap to configure the descheduler. ConfigKafkaDeSchedulerName = "config-kafka-descheduler" )
Variables ¶
This section is empty.
Functions ¶
func Enqueue ¶ added in v0.29.0
func Enqueue(userFacingResource string, enqueue func(key types.NamespacedName)) func(obj interface{})
Enqueue enqueues using the provided enqueue function the resource associated with a ConsumerGroup
func Filter ¶ added in v0.29.0
Filter returns a filter function based on the user-facing resource that a controller is tracking. Usable by FilteringResourceEventHandler.
func NewController ¶ added in v0.29.0
func NewController(ctx context.Context) *controller.Impl
Types ¶
type ConsumersPerPlacement ¶ added in v0.29.0
type ConsumersPerPlacement struct { Placement *eventingduckv1alpha1.Placement Consumers []*kafkainternals.Consumer }
type Reconciler ¶
type Reconciler struct { SchedulerFunc schedulerFunc ConsumerLister kafkainternalslisters.ConsumerLister InternalsClient internalv1alpha1.InternalV1alpha1Interface NameGenerator names.NameGenerator SystemNamespace string }
func (Reconciler) ReconcileKind ¶
func (r Reconciler) ReconcileKind(ctx context.Context, cg *kafkainternals.ConsumerGroup) reconciler.Event
type SchedulerConfig ¶ added in v0.29.0
type SchedulerConfig struct { StatefulSetName string RefreshPeriod time.Duration Capacity int32 SchedulerPolicyType scheduler.SchedulerPolicyType SchedulerPolicy *scheduler.SchedulerPolicy DeSchedulerPolicy *scheduler.SchedulerPolicy }
Click to show internal directories.
Click to hide internal directories.