Skip to content

Commit

Permalink
fix: tekton pipelines rerun (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderMatt authored Apr 25, 2024
1 parent 7b12f47 commit 8847396
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
14 changes: 14 additions & 0 deletions charts/tekton-dashboard/templates/clusterrolebindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ template "tekton-dashboard.fullname" . }}-tenant
subjects:
- kind: ServiceAccount
name: tekton-dashboard
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ template "tekton-dashboard.fullname" . }}-resources
labels: {{- include "tekton-dashboard.labels" . | indent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ template "tekton-dashboard.fullname" . }}-resources
subjects:
- kind: ServiceAccount
name: tekton-dashboard
Expand Down
26 changes: 25 additions & 1 deletion charts/tekton-dashboard/templates/clusterroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ rules:
- namespaces
- pods
- pods/log
- serviceaccounts
verbs:
- get
- list
Expand Down Expand Up @@ -83,4 +84,27 @@ rules:
verbs:
- get
- list
- watch
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "tekton-dashboard.fullname" . }}-resources
labels: {{- include "tekton-dashboard.labels" . | indent 4 }}
rules:
- apiGroups:
- tekton.dev
resources:
- tasks
- taskruns
- pipelines
- pipelineruns
- customruns
verbs:
- create
- get
- list
- watch
- update
- patch
- delete

0 comments on commit 8847396

Please sign in to comment.