consumergroup

package
v0.29.0 Latest Latest
Warning

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

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

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

func Filter(userFacingResource string) func(obj interface{}) bool

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

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
}

Jump to

Keyboard shortcuts

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