I have such a config file:
apiVersion: v1
kind: ConfigMap
metadata:
name: ...
labels:...
annotations:...
data:
{{- with .Files.Glob "folder-with-grafana-dashboards/*.json" }}
{{ .AsConfig | indent 2 }}
{{- end }}
I would like to make grafana dashboard title configurable, so inside the dashboard json file I would like to have smth like this:
{{ some_external_variable }}
But I have no idea how to achieve it.
I've read following topic which recommends to use tpl function https://github.com/helm/helm/issues/2573
But I can't use it because my grafana dashboards already use {{ }}
construction inside but not for templating purpose so tpl fubction will fail.
Is there any other way to follow my requirements ?