Skip to content

Commit

Permalink
Allow imc-controller to list JobSinks (#8294)
Browse files Browse the repository at this point in the history
This is required otherwise MTChannelBasedBroker backed by IMC channel
can't forward events to JobSink. The error on ImMemoryChannel is
following:
```
failed to get lister for sinks.knative.dev/v1alpha1, Resource=jobsinks:
jobsinks.sinks.knative.dev is forbidden:
User "system:serviceaccount:knative-eventing:imc-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 7bca815 commit 2e4d353
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ rules:
- get
- list
- watch
- apiGroups:
- sinks.knative.dev
resources:
- jobsinks
- jobsinks/status
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit 2e4d353

Please sign in to comment.