common-helm-lib/templates/_serviceaccount.tpl
Jonas Forsberg f7fd24fe6f
All checks were successful
Lint and Test Charts / lint-test (push) Successful in 7s
fixed trailing whitespaces
2024-10-18 16:24:24 +02:00

16 lines
429 B
Smarty

{{- define "lib.serviceaccount" -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "lib.serviceAccountName" . }}
namespace: {{ .Values.namespace }}
labels:
{{- include "lib.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}