mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-25 21:21:35 +00:00
9b98e5a102
### Pull Request Checklist <!-- Please read https://matrix-org.github.io/dendrite/development/contributing before submitting your pull request --> * [x] I have added Go unit tests or [Complement integration tests](https://github.com/matrix-org/complement) for this PR _or_ I have justified why this PR doesn't need tests * [x] Pull request includes a [sign off below using a legally identifiable name](https://matrix-org.github.io/dendrite/development/contributing#sign-off) _or_ I have already signed off privately Signed-off-by: `Your Name <your@email.example.org>` Signed-off-by: genofire <geno+dev@fireorbit.de> Co-authored-by: kegsay <kegan@matrix.org>
17 lines
531 B
YAML
17 lines
531 B
YAML
{{- if .Values.grafana.dashboards.enabled }}
|
|
{{- range $path, $bytes := .Files.Glob "grafana_dashboards/*.json" }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "dendrite.fullname" $ }}-grafana-dashboards-{{ base $path }}
|
|
labels:
|
|
{{- include "dendrite.labels" $ | nindent 4 }}
|
|
{{- toYaml $.Values.grafana.dashboards.labels | nindent 4 }}
|
|
annotations:
|
|
{{- toYaml $.Values.grafana.dashboards.annotations | nindent 4 }}
|
|
data:
|
|
{{- ($.Files.Glob $path ).AsConfig | nindent 2 }}
|
|
{{- end }}
|
|
{{- end }}
|