21 lines
436 B
YAML
21 lines
436 B
YAML
{{- if .Values.sa }}
|
|
{{- range $sa := .Values.sa }}
|
|
---
|
|
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 }}
|