trigger

package
v0.41.7 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 48 Imported by: 0

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 NewController(ctx context.Context, watcher configmap.Watcher, configs *config.Env) *controller.Impl

func NewNamespacedController added in v0.34.0

func NewNamespacedController(ctx context.Context, watcher configmap.Watcher, configs *config.Env) *controller.Impl

Types

type FlagsHolder added in v0.34.0

type FlagsHolder struct {
	Flags     feature.Flags
	FlagsLock sync.RWMutex
}

type NamespacedReconciler added in v0.34.0

type NamespacedReconciler struct {
	*base.Reconciler
	*FlagsHolder

	BrokerLister         eventinglisters.BrokerLister
	ConfigMapLister      corelisters.ConfigMapLister
	ServiceAccountLister corelisters.ServiceAccountLister
	EventingClient       eventingclientset.Interface
	Resolver             *resolver.URIResolver

	Env *config.Env

	GetKafkaClusterAdmin clientpool.GetKafkaClusterAdminFunc
	GetKafkaClient       clientpool.GetKafkaClientFunc
	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
	ServiceAccountLister corelisters.ServiceAccountLister
	EventingClient       eventingclientset.Interface
	Resolver             *resolver.URIResolver

	Env *config.Env

	BrokerClass string

	DataPlaneConfigMapLabeler base.ConfigMapOption

	KafkaFeatureFlags *apisconfig.KafkaFeatureFlags

	// GetKafkaClusterAdmin 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.
	GetKafkaClusterAdmin clientpool.GetKafkaClusterAdminFunc
	// GetKafkaClient 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.
	GetKafkaClient clientpool.GetKafkaClientFunc
	// 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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