1 {{- if and .Values.alertmanager.enabled .Values.alertmanager.serviceAccount.create }}
5 name: {{ template "prometheus-operator.alertmanager.serviceAccountName" . }}
6 namespace: {{ template "prometheus-operator.namespace" . }}
8 app: {{ template "prometheus-operator.name" . }}-alertmanager
9 {{ include "prometheus-operator.labels" . | indent 4 }}
10 {{- if .Values.alertmanager.serviceAccount.annotations }}
12 {{ toYaml .Values.alertmanager.serviceAccount.annotations | indent 4 }}
15 {{ toYaml .Values.global.imagePullSecrets | indent 2 }}