Skip to content

Commit

Permalink
add annotations to GrafanaDashboard (#1952)
Browse files Browse the repository at this point in the history
* add annotations to GrafanaDashboard

* Update CHANGELOG.md
  • Loading branch information
dudizimber authored Jan 29, 2025
1 parent 9e50b94 commit e6479c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/victoria-metrics-k8s-stack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Next release

- TODO
- add `defaultDashboards.annotations` to `GrafanaDashboard`s resources.

## 0.35.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ metadata:
namespace: {{ include "vm.namespace" $ }}
name: {{ printf "%s-%s" (include "vm.fullname" $ctx) $dashboardName | replace "_" "" }}
labels: {{ include "vm.labels" $ctx | nindent 4 }}
{{- with $.Values.defaultDashboards.annotations }}
annotations:
{{- range $key, $val := . }}
{{ $key }}: {{ $val | quote }}
{{- end }}
{{- end }}
spec:
json: | {{ $dashboardResult | nindent 4 }}
{{- toYaml $.Values.defaultDashboards.grafanaOperator.spec | nindent 2 }}
Expand Down

0 comments on commit e6479c8

Please sign in to comment.