2024-10-10 05:25:16 +00:00
|
|
|
{{- if .Values.sa }}
|
2024-10-16 19:20:58 +00:00
|
|
|
{{- range $sa := .Values.sa }}
|
2024-10-10 05:25:16 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: {{ $sa.name }}
|
|
|
|
namespace: {{ $sa.namespace }}
|
|
|
|
labels:
|
|
|
|
{{- include "roles.labels" $ | nindent 4 }}
|
|
|
|
{{- with $sa.labels }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with $sa.annotations}}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
automountServiceAccountToken: true
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|