Fix SA in the roles chart

This commit is contained in:
Nikolai Rodionov 2024-10-16 21:20:58 +02:00
parent 03413ea1cb
commit 38a0f2781d
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{{- if .Values.sa }}
{{- range $sa := .Values.roles }}
{{- range $sa := .Values.sa }}
---
apiVersion: v1
kind: ServiceAccount

View File

@ -13,11 +13,12 @@ bindings:
kind: ClusterRoleBinding
subjects:
- kind: ServiceAccount
name: pipelines
namespace: woodpecker-ci
namespace: pipelines
name: woodpecker-ci
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
sa:
- name: woodpecker-ci
namespace: pipelines