helm/templates/serviceaccount.yaml
raw| 1 | {{- if .Values.serviceAccount.create -}} |
| 2 | apiVersion: v1 |
| 3 | kind: ServiceAccount |
| 4 | metadata: |
| 5 | name: {{ include "helm.serviceAccountName" . }} |
| 6 | labels: |
| 7 | {{- include "helm.labels" . | nindent 4 }} |
| 8 | {{- with .Values.serviceAccount.annotations }} |
| 9 | annotations: |
| 10 | {{- toYaml . | nindent 4 }} |
| 11 | {{- end }} |
| 12 | {{- end -}} |