Paramterize the configMap name
[demo.git] / vnfs / DAaaS / sample-apps / m3db_promql / templates / configmap_promql_app_env.yaml
index 1f54f34..7116a17 100644 (file)
@@ -1,6 +1,6 @@
 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