channel

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: 56 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TopicPrefix is the Kafka Channel topic prefix - (topic name: knative-messaging-kafka.<channel-namespace>.<channel-name>).
	DefaultDeliveryOrder         = contract.DeliveryOrder_ORDERED
	NewChannelIngressServiceName = "kafka-channel-ingress"

	// TopicPrefix is the old Kafka Channel topic prefix - we keep this constant so that deleting channels shortly after upgrading
	// does not have issues. See https://github.com/knative-extensions/eventing-kafka-broker/issues/3289 for more info
	TopicPrefix = "knative-messaging-kafka"
)

Variables

This section is empty.

Functions

func NewController

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

Types

type Reconciler

type Reconciler struct {
	*base.Reconciler
	*config.Env

	Resolver *resolver.URIResolver

	// 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

	ConfigMapLister    corelisters.ConfigMapLister
	ServiceLister      corelisters.ServiceLister
	SubscriptionLister messaginglisters.SubscriptionLister

	Prober prober.NewProber

	IngressHost string

	KafkaFeatureFlags *apisconfig.KafkaFeatureFlags
}

func (*Reconciler) FinalizeKind

func (r *Reconciler) FinalizeKind(ctx context.Context, channel *messagingv1beta1.KafkaChannel) reconciler.Event

func (*Reconciler) ReconcileKind

func (r *Reconciler) ReconcileKind(ctx context.Context, channel *messagingv1beta1.KafkaChannel) reconciler.Event

Directories

Path Synopsis
apis

Jump to

Keyboard shortcuts

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