21 lines
573 B
YAML
21 lines
573 B
YAML
{{- if and (.Values.config) (eq .Values.configMap "") }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "alertmanager.fullname" . }}
|
|
labels:
|
|
{{- include "alertmanager.labels" . | nindent 4 }}
|
|
{{- with .Values.configAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
namespace: {{ include "alertmanager.namespace" . }}
|
|
data:
|
|
alertmanager.yml: |
|
|
{{- toYaml .Values.config | default "{}" | nindent 4 }}
|
|
{{- range $key, $value := .Values.templates }}
|
|
{{ $key }}: |-
|
|
{{- $value | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|