{{- if or .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ template "haproxy-ingress.serviceAccountName" . }}
  namespace: {{ .Release.Namespace }}
{{- end -}}