Documentation ¶
Index ¶
- Constants
- func NewController(ctx context.Context, watcher configmap.Watcher, env *config.Env) *controller.Impl
- func NewNamespacedController(ctx context.Context, watcher configmap.Watcher, env *config.Env) *controller.Impl
- func ValidateDefaultBackoffDelayMs(env config.Env) error
- type Counter
- type NamespacedReconciler
- type Reconciler
Constants ¶
View Source
const ( // TopicPrefix is the Kafka Broker topic prefix - (topic name: knative-broker-<broker-namespace>-<broker-name>). TopicPrefix = "knative-broker-" // 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 )
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewNamespacedController ¶ added in v0.34.0
Types ¶
type Counter ¶ added in v0.33.7
type Counter struct {
// contains filtered or unexported fields
}
type NamespacedReconciler ¶ added in v0.34.0
type NamespacedReconciler struct { *base.Reconciler *config.Env Resolver *resolver.URIResolver ConfigMapLister corelisters.ConfigMapLister ServiceAccountLister corelisters.ServiceAccountLister ServiceLister corelisters.ServiceLister ClusterRoleBindingLister rbaclisters.ClusterRoleBindingLister DeploymentLister appslisters.DeploymentLister // NewKafkaClusterAdminClient 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. NewKafkaClusterAdminClient kafka.NewClusterAdminClientFunc BootstrapServers string Prober prober.Prober Counter *Counter IPsLister prober.IPListerWithMapping ManifestivalClient mf.Client }
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 // NewKafkaClusterAdminClient 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. NewKafkaClusterAdminClient kafka.NewClusterAdminClientFunc BootstrapServers string Prober prober.Prober Counter *Counter }
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
Click to show internal directories.
Click to hide internal directories.