15 lines
390 B
YAML
15 lines
390 B
YAML
|
{{- if .Values.serviceAccount.create }}
|
||
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
labels:
|
||
|
{{- include "grafana.labels" . | nindent 4 }}
|
||
|
{{- $root := . }}
|
||
|
{{- with .Values.serviceAccount.annotations }}
|
||
|
annotations:
|
||
|
{{ tpl (toYaml . | indent 4) $root }}
|
||
|
{{- end }}
|
||
|
name: {{ template "grafana.serviceAccountName" . }}
|
||
|
namespace: {{ template "grafana.namespace" . }}
|
||
|
{{- end }}
|