# helm_charts_default-backend-serviceaccount.yaml
{{- if and .Values.defaultBackend.enabled  .Values.defaultBackend.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
  labels:
    app: {{ template "nginx-ingress.name" . }}
    chart: {{ template "nginx-ingress.chart" . }}
    heritage: {{ .Release.Service }}
    release: {{ template "nginx-ingress.releaseLabel" . }}
  name: {{ template "nginx-ingress.defaultBackend.serviceAccountName" . }}
{{- end }}