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