fix(rbac): add missing eventing.keda.sh permissions (#714)

Add r/w permissions for cloudeventsources and clustercloudeventsources
in the minimal-rbac ClusterRole template.

These are required to prevent a crashloop when shipping the operator
with the `watchNamespace` property.

Fixes #6084

Signed-off-by: Gaston Festari <cilindrox@gmail.com>
This commit is contained in:
Gaston Festari 2025-01-22 20:17:12 -03:00 committed by GitHub
parent 3e58b2affe
commit 33070ca215
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -113,6 +113,19 @@ rules:
- update
- watch
{{- end }}
- apiGroups:
- eventing.keda.sh
resources:
- cloudeventsources
- cloudeventsources/status
- clustercloudeventsources
- clustercloudeventsources/status
verbs:
- get
- list
- patch
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding