charts/dgrsc/templates/serviceaccount.yaml
{{- if .Values.serviceAccount.enabled -}}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "dgrsc.serviceAccountName" . }}
labels:
{{- include "dgrsc.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}