broker

package
v0.41.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 65 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExternalTopicAnnotation for using external kafka topic for the broker
	ExternalTopicAnnotation = "kafka.eventing.knative.dev/external.topic"

	// ConsumerConfigKey is the key for Kafka Broker consumer configurations
	ConsumerConfigKey = "config-kafka-broker-consumer.properties"
)
View Source
const (
	DefaultNumPartitions     = 20
	DefaultReplicationFactor = 5
)
View Source
const (
	// NamespacedBrokerAdditionalResourcesConfigMapName is the ConfigMap name for the ConfigMap that holds additional
	// resources to be propagated to the target namespace like Prometheus ServiceMonitors, etc.
	NamespacedBrokerAdditionalResourcesConfigMapName = "config-namespaced-broker-resources"
)

Variables

This section is empty.

Functions

func FilterClusterScoped added in v0.36.2

func FilterClusterScoped(u *unstructured.Unstructured) bool

func NewController

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

func NewNamespacedController added in v0.34.0

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

func ValidateDefaultBackoffDelayMs added in v0.19.0

func ValidateDefaultBackoffDelayMs(env config.Env) error

Types

type NamespacedReconciler added in v0.34.0

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

	Resolver *resolver.URIResolver

	NamespaceLister          corelisters.NamespaceLister
	ConfigMapLister          corelisters.ConfigMapLister
	ServiceAccountLister     corelisters.ServiceAccountLister
	ServiceLister            corelisters.ServiceLister
	ClusterRoleBindingLister rbaclisters.ClusterRoleBindingLister
	DeploymentLister         appslisters.DeploymentLister
	StatefulSetLister        appslisters.StatefulSetLister
	BrokerLister             eventinglisters.BrokerLister

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

	BootstrapServers string

	Prober  prober.NewProber
	Counter *counter.Counter

	IPsLister          prober.IPListerWithMapping
	ManifestivalClient mf.Client

	DataplaneLifecycleLocksByNamespace util.LockMap[string]

	KafkaFeatureFlags *apisconfig.KafkaFeatureFlags
}

func (*NamespacedReconciler) FinalizeKind added in v0.34.0

func (r *NamespacedReconciler) FinalizeKind(ctx context.Context, broker *eventing.Broker) reconciler.Event

func (*NamespacedReconciler) ReconcileKind added in v0.34.0

func (r *NamespacedReconciler) ReconcileKind(ctx context.Context, broker *eventing.Broker) reconciler.Event

type Reconciler

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

	Resolver *resolver.URIResolver

	ConfigMapLister corelisters.ConfigMapLister

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

	BootstrapServers string

	Prober            prober.NewProber
	Counter           *counter.Counter
	KafkaFeatureFlags *apisconfig.KafkaFeatureFlags
}

func (*Reconciler) FinalizeKind

func (r *Reconciler) FinalizeKind(ctx context.Context, broker *eventing.Broker) reconciler.Event

func (*Reconciler) ReconcileKind

func (r *Reconciler) ReconcileKind(ctx context.Context, broker *eventing.Broker) reconciler.Event

Jump to

Keyboard shortcuts

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