Using common template to provide endpoints to dashboard
[it/dep.git] / ric-aux / 80-Auxiliary-Functions / helm / dashboard / templates / appconfig.yaml
index 2930a15..e6358c5 100644 (file)
 apiVersion: v1
 kind: ConfigMap
 metadata:
-  name: {{ include "dashboard.fullname" . }}-appconfig
+  name: {{ include "common.configmapname.dashboard" . }}-appconfig
 data:
   # this key becomes the filename when mounted
   application.properties: |
     # appconfig.yaml
-    server.port = {{ .Values.dashboard.server.port }}
-    a1med.url =   {{ .Values.dashboard.properties.a1med.url   }}
-    anrxapp.url = {{ .Values.dashboard.properties.anrxapp.url }}
-    e2mgr.url =   {{ .Values.dashboard.properties.e2mgr.url   }}
-    xappmgr.url = {{ .Values.dashboard.properties.xappmgr.url }}
+    server.port = {{ .Values.dashboard.service.http.containerPort }}
+    a1med.url.prefix =   {{ include "dashboard.prefix.a1mediator" . }}
+    a1med.url.suffix =   {{ .Values.dashboard.properties.a1med.url.suffix   }}
+    anrxapp.url.prefix = {{ include "dashboard.prefix.anrxapp" . }}
+    anrxapp.url.suffix = {{ .Values.dashboard.properties.anrxapp.url.suffix }}
+    appmgr.url.prefix =  {{ include "dashboard.prefix.appmgr" .  }}
+    appmgr.url.suffix =  {{ .Values.dashboard.properties.appmgr.url.suffix  }}
+    e2mgr.url.prefix =   {{ include "dashboard.prefix.e2mgr" .   }}
+    e2mgr.url.suffix =   {{ .Values.dashboard.properties.e2mgr.url.suffix   }}