Add support for prometheus
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / prometheus / templates / pushgateway-serviceaccount.yaml
diff --git a/helm/infrastructure/subcharts/prometheus/templates/pushgateway-serviceaccount.yaml b/helm/infrastructure/subcharts/prometheus/templates/pushgateway-serviceaccount.yaml
new file mode 100644 (file)
index 0000000..8c0b876
--- /dev/null
@@ -0,0 +1,11 @@
+{{- if and .Values.pushgateway.enabled .Values.serviceAccounts.pushgateway.create -}}
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+  labels:
+    {{- include "prometheus.pushgateway.labels" . | nindent 4 }}
+  name: {{ template "prometheus.serviceAccountName.pushgateway" . }}
+{{ include "prometheus.namespace" . | indent 2 }}
+  annotations:
+{{ toYaml .Values.serviceAccounts.pushgateway.annotations | indent 4 }}
+{{- end -}}