Skip to content

Commit

Permalink
limits the length of the grafana dashboard uid to 40 to prevent grafa… (
Browse files Browse the repository at this point in the history
#509)

* dashboard: removes dashboard.uid function and sets the uid to null

Signed-off-by: Marcel Heers <[email protected]>

* updates Chart.yaml

Signed-off-by: Marcel Heers <[email protected]>

---------

Signed-off-by: Marcel Heers <[email protected]>
  • Loading branch information
mheers authored Jun 13, 2024
1 parent 9338c40 commit b42b00e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions charts/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords:
- logging
- fluent-bit
- fluentd
version: 0.46.9
version: 0.46.10
appVersion: 3.0.6
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/fluentd/fluentbit/icon/fluentbit-icon-color.svg
home: https://fluentbit.io/
Expand All @@ -23,4 +23,4 @@ maintainers:
annotations:
artifacthub.io/changes: |
- kind: changed
description: "Update _Fluent Bit_ OCI image to [v3.0.6](https://github.com/fluent/fluent-bit/releases/tag/v3.0.6)"
description: "Dashboard: remove dashboard.uid function and set the uid to null"
2 changes: 1 addition & 1 deletion charts/fluent-bit/dashboards/fluent-bit.json
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@
},
"timezone": "",
"title": "{{ include "fluent-bit.fullname" . }}",
"uid": "{{ include "fluent-bit.dashboard.uid" . }}",
"uid": null,
"version": 7,
"weekStart": ""
}
6 changes: 0 additions & 6 deletions charts/fluent-bit/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,3 @@ Create the name of OpenShift SecurityContextConstraints to use
{{- printf "%s" (default (include "fluent-bit.fullname" .) .Values.openShift.securityContextConstraints.name) -}}
{{- end -}}
{{- end -}}
{{/*
Create the uid for grafana fluent-bit dashboard
*/}}
{{- define "fluent-bit.dashboard.uid" -}}
{{- sha256sum (printf "%s/%s" .Release.Namespace .Release.Name) }}
{{- end -}}

0 comments on commit b42b00e

Please sign in to comment.