b70745aa6f824c95164dc42c72a6aae42246817a
[demo.git] / vnfs / DAaaS / collection / charts / prometheus-node-exporter / templates / serviceaccount.yaml
1 {{- if .Values.rbac.create -}}
2 {{- if .Values.serviceAccount.create -}}
3 apiVersion: v1
4 kind: ServiceAccount
5 metadata:
6   name: {{ template "prometheus-node-exporter.serviceAccountName" . }}
7   labels:
8     app: {{ template "prometheus-node-exporter.name" . }}
9     chart: {{ template "prometheus-node-exporter.chart" . }}    
10     release: "{{ .Release.Name }}"
11     heritage: "{{ .Release.Service }}"
12 imagePullSecrets: 
13 {{ toYaml .Values.serviceAccount.imagePullSecrets | indent 2 }}
14 {{- end -}}
15 {{- end -}}