{{- if and .Values.haproxy.serviceAccount.create .Values.haproxy.enabled }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "redis-ha.serviceAccountName" . }}-haproxy namespace: {{ .Release.Namespace }} labels: heritage: {{ .Release.Service }} release: {{ .Release.Name }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} app: {{ template "redis-ha.fullname" . }} {{- end }}