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