fix(alertmanager-matrix): configmap to file
This commit is contained in:
parent
ad3e4f7ba4
commit
6aae86427f
4 changed files with 16 additions and 8 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: alertmanager-matrix
|
name: alertmanager-matrix
|
||||||
description: Service for managing and receiving Alertmanager alerts on Matrix
|
description: Service for managing and receiving Alertmanager alerts on Matrix
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
appVersion: "latest"
|
appVersion: "latest"
|
||||||
keywords:
|
keywords:
|
||||||
- matrix
|
- matrix
|
||||||
|
|
|
@ -3,12 +3,16 @@ apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "alertmanager-matrix.fullname" . }}
|
name: {{ include "alertmanager-matrix.fullname" . }}
|
||||||
|
annotations:
|
||||||
|
config-icons: {{ toYaml .Values.bot.icons | sha256sum | trunc 32}}
|
||||||
|
config-colors: {{ toYaml .Values.bot.colors | sha256sum | trunc 32}}
|
||||||
|
config-templates: {{ toYaml .Values.bot.templates | sha256sum | trunc 32}}
|
||||||
data:
|
data:
|
||||||
icon.yaml: >
|
icon.yaml: |
|
||||||
{{- toYaml .Values.bot.icons | nindent 4 }}
|
{{- toYaml .Values.bot.icons | nindent 4 }}
|
||||||
color.yaml: >
|
color.yaml: |
|
||||||
{{- toYaml .Values.bot.colors | nindent 4 }}
|
{{- toYaml .Values.bot.colors | nindent 4 }}
|
||||||
text.tpl: >
|
text.tpl: |
|
||||||
{{- .Values.bot.template.text | nindent 4 }}
|
{{- .Values.bot.template.text | nindent 4 }}
|
||||||
html.tpl: >
|
html.tpl: |
|
||||||
{{- .Values.bot.template.html | nindent 4 }}
|
{{- .Values.bot.template.html | nindent 4 }}
|
||||||
|
|
|
@ -13,8 +13,11 @@ spec:
|
||||||
{{- include "alertmanager-matrix.selectorLabels" . | nindent 6 }}
|
{{- include "alertmanager-matrix.selectorLabels" . | nindent 6 }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.podAnnotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
config-icons: {{ toYaml .Values.bot.icons | sha256sum | trunc 32}}
|
||||||
|
config-colors: {{ toYaml .Values.bot.colors | sha256sum | trunc 32}}
|
||||||
|
config-templates: {{ toYaml .Values.bot.templates | sha256sum | trunc 32}}
|
||||||
|
{{- with .Values.podAnnotations }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
|
|
|
@ -30,6 +30,7 @@ bot:
|
||||||
token: "SECRET_TOKEN"
|
token: "SECRET_TOKEN"
|
||||||
rooms:
|
rooms:
|
||||||
- "!not_existing:matrix.org"
|
- "!not_existing:matrix.org"
|
||||||
|
- "!also_not_existing:matrix.org"
|
||||||
alertmanager: "http://localhost:9093"
|
alertmanager: "http://localhost:9093"
|
||||||
showLabels: false
|
showLabels: false
|
||||||
messageType: "m.notice"
|
messageType: "m.notice"
|
||||||
|
@ -59,7 +60,7 @@ bot:
|
||||||
{{.StatusString|upper}}
|
{{.StatusString|upper}}
|
||||||
{{.AlertName}}:
|
{{.AlertName}}:
|
||||||
{{.Summary}}
|
{{.Summary}}
|
||||||
{{if ne .Fingerprint \"\"}}
|
{{if ne .Fingerprint ""}}
|
||||||
({{.Fingerprint}})
|
({{.Fingerprint}})
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if $.ShowLabels}}
|
{{if $.ShowLabels}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue