X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-aux%2F80-Auxiliary-Functions%2Fhelm%2Fdashboard%2Ftemplates%2Fappconfig.yaml;fp=ric-aux%2F80-Auxiliary-Functions%2Fhelm%2Fdashboard%2Ftemplates%2Fconfigmap.yaml;h=2930a1557c100c1f8ff5d66ae3c6102e75fc9792;hb=3d542731ce43e665288f769989f60be45cabb49a;hp=e10805ed11a33362ee5a2ec2b4f7cf57ba6254c2;hpb=f5f0e8d28a18f8b7cb6c934a0a943ed8fc494846;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/configmap.yaml b/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/appconfig.yaml similarity index 71% rename from ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/configmap.yaml rename to ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/appconfig.yaml index e10805ed..2930a155 100644 --- a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/configmap.yaml +++ b/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/appconfig.yaml @@ -15,22 +15,18 @@ # limitations under the License. # ################################################################################ -# Provides configuration parameters which spring expects as a JSON string +# Defines a config map for mounting as file application.properties apiVersion: v1 kind: ConfigMap metadata: - name: dashboard-configmap + name: {{ include "dashboard.fullname" . }}-appconfig data: - springApplication.json: | - { - "a1med": { - "basepath": "http://0.1.2.3:45" - }, - "e2mgr": { - "basepath": "http://1.2.3.4:56" - }, - "xappmgr": { - "basepath": "http://2.3.4.5:67" - } - } + # 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 }}