Add support for prometheus
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / prometheus / templates / pushgateway-serviceaccount.yaml
1 {{- if and .Values.pushgateway.enabled .Values.serviceAccounts.pushgateway.create -}}
2 apiVersion: v1
3 kind: ServiceAccount
4 metadata:
5   labels:
6     {{- include "prometheus.pushgateway.labels" . | nindent 4 }}
7   name: {{ template "prometheus.serviceAccountName.pushgateway" . }}
8 {{ include "prometheus.namespace" . | indent 2 }}
9   annotations:
10 {{ toYaml .Values.serviceAccounts.pushgateway.annotations | indent 4 }}
11 {{- end -}}