go-latestver/charts/latestver/templates/serviceaccount.yaml
Knut Ahlers 38f0348884
Add Helm Chart
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-16 18:04:42 +02:00

13 lines
399 B
YAML

{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "go-latestver.serviceAccountName" . }}
labels:
{{- include "go-latestver.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}