Skip to content

Commit d710ef6

Browse files
authored
Merge branch 'main' into fix-env
2 parents ed66302 + b5338af commit d710ef6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

charts/team-ns/templates/rbac.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,18 @@ rules:
220220
resources: ["secrets"]
221221
verbs: ["get", "watch", "list", "delete", "create", "update"]
222222
---
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+
---
223235
# RoleBinding for the above Role in team namespace
224236
apiVersion: rbac.authorization.k8s.io/v1
225237
kind: RoleBinding
@@ -234,4 +246,17 @@ roleRef:
234246
kind: Role
235247
name: apl-gitea-operator-service-account
236248
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
237262
---

0 commit comments

Comments
 (0)