apiVersion: v1
kind: ConfigMap
metadata:
- name: configmap_promql_app_env
+ name: {{ if .Values.prometheus.configMapName }}{{ .Values.prometheus.configMapName }}{{ else }}{{ template "promql_query_app.fullname" . }}{{ end }}
data:
- DATA_ENDPOINT: {{ .Values.prometheus.serverURL }}
\ No newline at end of file
+ prometheus_endpoint: {{ .Values.prometheus.serverURL }}
\ No newline at end of file