13 lines
615 B
YAML
13 lines
615 B
YAML
{{- if and .Values.alertmanager.enabled .Values.alertmanager.serviceAccount.create }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ template "kube-prometheus.alertmanager.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels: {{- include "kube-prometheus.alertmanager.labels" . | nindent 4 }}
|
|
{{- if index .Values.alertmanager.serviceAccount "annotations" }}
|
|
annotations: {{- include "tc.v1.common.tplvalues.render" (dict "value" .Values.alertmanager.serviceAccount.annotations "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
{{- include "kube-prometheus.imagePullSecrets" . }}
|
|
{{- end }}
|