You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.
Describe the bug
As the time of writing, I only tried with 0.17.7.
When I create a namespaced KafkaChannel (i.e. with annotation eventing.knative.dev/scope: namespace), I see following:
kafka-ch-dispatcher-7cb455959f-996vq dispatcher E1106 11:16:48.094504 1 leaderelection.go:331] error retrieving resource lock knative-eventing/kafkachannel-dispatcher.knative.dev-eventing-contrib-kafka-channel-pkg-reconciler-dispatcher.reconciler.00-of-01: leases.coordination.k8s.io "kafkachannel-dispatcher.knative.dev-eventing-contrib-kafka-channel-pkg-reconciler-dispatcher.reconciler.00-of-01" is forbidden: User "system:serviceaccount:ns02:kafka-ch-dispatcher" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "knative-eventing"
The problem lies in the leader elector builder which creates leases in the system namespace. The fix in pkg is quite big due to import cycle.
The dispatcher is not meant to run in leader-election mode and AFAIK it does run in this mode by accident, not by choice. So let's turn this off sooner than later.
Describe the bug
As the time of writing, I only tried with 0.17.7.
When I create a namespaced KafkaChannel (i.e. with annotation
eventing.knative.dev/scope: namespace
), I see following:Expected behavior
No error
To Reproduce
config-kafka
configmap inknative-eventing
:Knative release version
0.17.7, maybe future versions have the same problem, haven't tried yet.
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered: