mirror of
https://github.com/h44z/wg-portal
synced 2025-02-26 05:49:14 +00:00
15 lines
512 B
YAML
15 lines
512 B
YAML
|
{{- with .Values.monitoring.dashboard -}}
|
||
|
{{- if .enabled }}
|
||
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
{{- with .annotations }}
|
||
|
annotations: {{- toYaml . | nindent 4 }}
|
||
|
{{- end }}
|
||
|
labels: {{- include "wg-portal.util.merge" (list $ .labels "wg-portal.labels") | nindent 4 }}
|
||
|
name: {{ printf "grafana-dashboards-%s" (include "wg-portal.fullname" $) }}
|
||
|
namespace: {{ default $.Release.Namespace .namespace }}
|
||
|
data: {{ ($.Files.Glob "files/dashboard.json").AsConfig | nindent 2 }}
|
||
|
{{- end -}}
|
||
|
{{- end -}}
|