12 lines
405 B
YAML
12 lines
405 B
YAML
{{ if .Values.global.prometheus.enabled }}
|
|
{{- if and .Values.prometheus.alertmanager.enabled .Values.prometheus.serviceAccounts.alertmanager.create -}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
labels:
|
|
{{- include "prometheus.alertmanager.labels" . | nindent 4 }}
|
|
name: {{ template "prometheus.serviceAccountName.alertmanager" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end -}}
|
|
{{ end }}
|