# helm_charts_consul-test-serviceaccount.yaml
{{- if .Values.test.rbac.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
  labels:
    app: {{ template "consul.name" . }}
    chart: {{ template "consul.chart" . }}
    heritage: {{ .Release.Service }}
    release: {{ .Release.Name }}
  name: {{ template "consul.fullname" . }}-test
{{- end }}