Skip to content

Commit

Permalink
Allow kafka-controller to list JobSinks (#4155)
Browse files Browse the repository at this point in the history
This is required otherwise KafkaBroker and KafkaSource can't forward
events to JobSink. This type of error is thrown:

failed to reconcile contract: failed to reconcile egress: failed to
resolve subscriber: failed to get lister for sinks.knative.dev/v1alpha1,
Resource=jobsinks: jobsinks.sinks.knative.dev is forbidden: User
"system:serviceaccount:knative-eventing:kafka-controller" cannot list
resource "jobsinks" in API group "sinks.knative.dev" at the cluster
scope
  • Loading branch information
mgencur authored Nov 4, 2024
1 parent aec2555 commit 1616ec3
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,16 @@ rules:
verbs:
- update

- apiGroups:
- "sinks.knative.dev"
resources:
- "jobsinks"
- "jobsinks/status"
verbs:
- get
- list
- watch

# resources needed to grant eventtype autocreate rbac to namespaced data plane component
- apiGroups:
- "eventing.knative.dev"
Expand Down

0 comments on commit 1616ec3

Please sign in to comment.