Skip to content

Commit

Permalink
Fix RBAC permissions to get/list/watch eventpolicies
Browse files Browse the repository at this point in the history
  • Loading branch information
creydr committed Jul 2, 2024
1 parent 7555093 commit 80aca3b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ rules:
- brokers/status
- triggers
- triggers/status
- eventpolicies
verbs:
- get
- list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ rules:
- eventing.knative.dev
resources:
- brokers
- eventpolicies
verbs:
- get
- list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,14 @@ rules:
- eventing.knative.dev
resources:
- eventtypes
- eventpolicies
verbs:
- create
- get
- list
- watch
- apiGroups:
- eventing.knative.dev
resources:
- eventtypes
verbs:
- create
9 changes: 8 additions & 1 deletion config/core/roles/job-sink-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,11 @@ rules:
- create
- update
- patch

- apiGroups:
- eventing.knative.dev
resources:
- eventpolicies
verbs:
- get
- list
- watch
9 changes: 9 additions & 0 deletions config/core/roles/webhook-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ rules:
- "create"
- "patch"

- apiGroups:
- eventing.knative.dev
resources:
- eventpolicies
verbs:
- get
- list
- watch

# For the SinkBinding reconciler adding the OIDC identity service accounts
- apiGroups:
- ""
Expand Down

0 comments on commit 80aca3b

Please sign in to comment.