Skip to content

Commit

Permalink
Add annotations to Grafana dashboard ConfigMap (#119)
Browse files Browse the repository at this point in the history
* Add annotation to dashboard configmap

* Bump Chart version

* Update case value

---------

Co-authored-by: Bengt Fredh <[email protected]>
  • Loading branch information
bengtfredh and Bengt Fredh committed Jul 7, 2023
1 parent 4a99194 commit 5373bb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helm/templates/grafana-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ metadata:
{{- else }}
namespace: {{ .Release.Namespace }}
{{- end}}
annotations:
{{- with .Values.grafanaDashboard.dashboardAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
data:
grafana-helm-exporter.json: |-
{
Expand Down Expand Up @@ -265,4 +269,4 @@ data:
"uid": "Gqncyvfmz",
"version": 1
}
{{- end -}}
{{- end -}}
3 changes: 3 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ grafanaDashboard:
enabled: false
# Specifies then namespace where the dashboard should be created
# namespace:
# Add annotations to Configmap for Grafana dashboard
dashboardAnnotations: {}
# k8s-sidecar-target-directory: /tmp/dashboards/myfolder

replicaCount: 1

Expand Down

0 comments on commit 5373bb8

Please sign in to comment.