Skip to content

Commit 8847396

Browse files
authored
fix: tekton pipelines rerun (#1594)
1 parent 7b12f47 commit 8847396

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

charts/tekton-dashboard/templates/clusterrolebindings.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ roleRef:
2121
apiGroup: rbac.authorization.k8s.io
2222
kind: ClusterRole
2323
name: {{ template "tekton-dashboard.fullname" . }}-tenant
24+
subjects:
25+
- kind: ServiceAccount
26+
name: tekton-dashboard
27+
namespace: {{ .Release.Namespace }}
28+
---
29+
apiVersion: rbac.authorization.k8s.io/v1
30+
kind: ClusterRoleBinding
31+
metadata:
32+
name: {{ template "tekton-dashboard.fullname" . }}-resources
33+
labels: {{- include "tekton-dashboard.labels" . | indent 4 }}
34+
roleRef:
35+
apiGroup: rbac.authorization.k8s.io
36+
kind: ClusterRole
37+
name: {{ template "tekton-dashboard.fullname" . }}-resources
2438
subjects:
2539
- kind: ServiceAccount
2640
name: tekton-dashboard

charts/tekton-dashboard/templates/clusterroles.yaml

+25-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ rules:
5656
- namespaces
5757
- pods
5858
- pods/log
59+
- serviceaccounts
5960
verbs:
6061
- get
6162
- list
@@ -83,4 +84,27 @@ rules:
8384
verbs:
8485
- get
8586
- list
86-
- watch
87+
- watch
88+
---
89+
apiVersion: rbac.authorization.k8s.io/v1
90+
kind: ClusterRole
91+
metadata:
92+
name: {{ template "tekton-dashboard.fullname" . }}-resources
93+
labels: {{- include "tekton-dashboard.labels" . | indent 4 }}
94+
rules:
95+
- apiGroups:
96+
- tekton.dev
97+
resources:
98+
- tasks
99+
- taskruns
100+
- pipelines
101+
- pipelineruns
102+
- customruns
103+
verbs:
104+
- create
105+
- get
106+
- list
107+
- watch
108+
- update
109+
- patch
110+
- delete

0 commit comments

Comments
 (0)