Paramterize the configmap name in the helm chart of
sample-promql-query-app.
Issue-ID: ONAPARC-508
Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com>
Change-Id: I8ec7c6128fbc0577c73abacf1c8496eaf912fec7
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
- name: DATA_ENDPOINT
valueFrom:
configMapKeyRef:
- name: configmap_promql_app_env
- key: DATA_ENDPOINT
+ name: {{ if .Values.prometheus.configMapName }}{{ .Values.prometheus.configMapName }}{{ else }}{{ template "promql_query_app.fullname" . }}{{ end }}
+ key: prometheus_endpoint
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
prometheus:
serverURL: http://172.25.103.1:30090
+ configMapName: ""
## Model repository information (Minio)
## Model repository information (Minio)