Files
template-helm-chart-repository/templates/serviceaccount.yaml
aleksandr.vodyanov 9dee441084 add helm chart files
2024-08-19 13:21:47 +03:00

14 lines
397 B
YAML

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