summaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/prometheus-operator/templates/alertmanager/serviceaccount.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'vnfs/DAaaS/prometheus-operator/templates/alertmanager/serviceaccount.yaml')
-rw-r--r--vnfs/DAaaS/prometheus-operator/templates/alertmanager/serviceaccount.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/vnfs/DAaaS/prometheus-operator/templates/alertmanager/serviceaccount.yaml b/vnfs/DAaaS/prometheus-operator/templates/alertmanager/serviceaccount.yaml
new file mode 100644
index 00000000..bbed0287
--- /dev/null
+++ b/vnfs/DAaaS/prometheus-operator/templates/alertmanager/serviceaccount.yaml
@@ -0,0 +1,11 @@
+{{- if and .Values.alertmanager.enabled .Values.global.rbac.create .Values.alertmanager.serviceAccount.create }}
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: {{ template "prometheus-operator.alertmanager.serviceAccountName" . }}
+ labels:
+ app: {{ template "prometheus-operator.name" . }}-alertmanager
+{{ include "prometheus-operator.labels" . | indent 4 }}
+imagePullSecrets:
+{{ toYaml .Values.global.imagePullSecrets | indent 2 }}
+{{- end }}