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