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 3e408da
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 3 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
11 changes: 10 additions & 1 deletion 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 Expand Up @@ -178,4 +187,4 @@ rules:

- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["create"]
verbs: ["create"]

0 comments on commit 3e408da

Please sign in to comment.