# helm_charts_tiller-serviceaccount.yaml
{{- if .Values.tiller.enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: tiller
  {{- if hasKey .Values "namespace" }}
  namespace: {{ .Values.namespace }}
  {{- end }}
  labels:
    app: helm
    name: tiller
    chart: {{ template "magic-namespace.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
{{- end }}