@@ -220,6 +220,18 @@ rules:
220
220
resources : ["secrets"]
221
221
verbs : ["get", "watch", "list", "delete", "create", "update"]
222
222
---
223
+ apiVersion : rbac.authorization.k8s.io/v1
224
+ kind : ClusterRole
225
+ metadata :
226
+ name : apl-gitea-operator-team-{{ $v.teamId }}-trigger-template-pipeline-watcher
227
+ rules :
228
+ - apiGroups : ["tekton.dev"]
229
+ resources : ["pipelines"]
230
+ verbs : ["watch", "list", "get"]
231
+ - apiGroups : ["triggers.tekton.dev"]
232
+ resources : ["triggertemplates"]
233
+ verbs : ["watch", "list", "get"]
234
+ ---
223
235
# RoleBinding for the above Role in team namespace
224
236
apiVersion : rbac.authorization.k8s.io/v1
225
237
kind : RoleBinding
@@ -234,4 +246,17 @@ roleRef:
234
246
kind : Role
235
247
name : apl-gitea-operator-service-account
236
248
apiGroup : rbac.authorization.k8s.io
249
+ ---
250
+ apiVersion : rbac.authorization.k8s.io/v1
251
+ kind : ClusterRoleBinding
252
+ metadata :
253
+ name : apl-gitea-operator-team-{{ $v.teamId }}-trigger-template-pipeline-binding
254
+ subjects :
255
+ - kind : ServiceAccount
256
+ namespace : apl-gitea-operator
257
+ name : apl-gitea-operator
258
+ roleRef :
259
+ kind : ClusterRole
260
+ name : apl-gitea-operator-team-{{ $v.teamId }}-trigger-template-pipeline-watcher
261
+ apiGroup : rbac.authorization.k8s.io
237
262
---
0 commit comments