mirror of https://git.rancher.io/charts
17 lines
654 B
YAML
17 lines
654 B
YAML
{{- if and .Values.alertmanager.enabled .Values.alertmanager.serviceAccount.create }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ template "kube-prometheus-stack.alertmanager.serviceAccountName" . }}
|
|
namespace: {{ template "kube-prometheus-stack.namespace" . }}
|
|
labels:
|
|
app: {{ template "kube-prometheus-stack.name" . }}-alertmanager
|
|
{{ include "kube-prometheus-stack.labels" . | indent 4 }}
|
|
{{- if .Values.alertmanager.serviceAccount.annotations }}
|
|
annotations:
|
|
{{ toYaml .Values.alertmanager.serviceAccount.annotations | indent 4 }}
|
|
{{- end }}
|
|
imagePullSecrets:
|
|
{{ toYaml .Values.global.imagePullSecrets | indent 2 }}
|
|
{{- end }}
|