Files
hello-service-spring-boot/helm-chart/templates/serviceaccount.yaml
2024-09-06 10:00:42 +02:00

14 lines
421 B
YAML

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