Skip to content

Commit 83501bd

Browse files
committed
fix: allow pipelines and trigger templates
1 parent 058a7ab commit 83501bd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

charts/team-ns/templates/rbac.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,14 @@ rules:
223223
apiVersion: rbac.authorization.k8s.io/v1
224224
kind: ClusterRole
225225
metadata:
226-
name: apl-gitea-operator-team-{{ $v.teamId }}-pipeline-watcher
226+
name: apl-gitea-operator-team-{{ $v.teamId }}-trigger-pipeline-watcher
227227
rules:
228228
- apiGroups: ["tekton.dev"]
229229
resources: ["pipelines"]
230230
verbs: ["watch", "list", "get"]
231+
- apiGroups: ["triggers.tekton.dev"]
232+
resources: ["triggertemplates"]
233+
verbs: ["watch", "list", "get"]
231234
---
232235
# RoleBinding for the above Role in team namespace
233236
apiVersion: rbac.authorization.k8s.io/v1
@@ -247,7 +250,7 @@ roleRef:
247250
apiVersion: rbac.authorization.k8s.io/v1
248251
kind: ClusterRoleBinding
249252
metadata:
250-
name: apl-gitea-operator-team-{{ $v.teamId }}-pipeline-binding
253+
name: apl-gitea-operator-team-{{ $v.teamId }}-trigger-pipeline-binding
251254
subjects:
252255
- kind: ServiceAccount
253256
namespace: apl-gitea-operator

0 commit comments

Comments
 (0)