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;h=68e19254472c5e687885e0fb7247466476cb95a7;hb=196ad58ec497f7339f3c964e933233b657189094;hp=2b68de2836b4e478aa1f63ccd63dae22f4391880;hpb=3803859c341dc62bdcd79ba94be585592a94672b;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/appconfig.yaml b/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/appconfig.yaml index 2b68de28..68e19254 100644 --- a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/appconfig.yaml +++ b/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/appconfig.yaml @@ -15,20 +15,41 @@ # limitations under the License. # ################################################################################ -# Defines a config map for mounting as file application.properties +# Defines multiple config maps for mounting as files; e.g., application.properties +# The keys listed below MUST be configured in each deployment; +# this list does not include all keys recognized by the app. +# The template directives in the URL prefix definitions use common +# K8S ingress values, but use Dashboard values if present. apiVersion: v1 kind: ConfigMap metadata: name: {{ include "common.configmapname.dashboard" . }}-appconfig data: - # this key becomes the filename when mounted + # one key per file application.properties: | - # appconfig.yaml - server.port = {{ .Values.dashboard.service.http.containerPort }} - a1med.url = {{ include "dashboard.endpoint.a1mediator" . }} - anrxapp.url = {{ include "dashboard.endpoint.anrxapp" . }} - e2mgr.url = {{ include "dashboard.endpoint.e2mgr" . }} - # mock names for R1 testing, removing this entry disables the mock - e2mgr.mock.rannames = {{ .Values.dashboard.properties.e2mgr.mock.rannames }} - xappmgr.url = {{ include "dashboard.endpoint.xappmgr" . }} + server.port = {{ include "common.serviceport.dashboard.container" . }} + userfile = {{ .Values.dashboard.userfile }} + a1med.url.prefix = {{ include "dashboard.prefix.a1mediator" . }} + a1med.url.suffix = {{ .Values.dashboard.a1med.url.suffix }} + anrxapp.url.prefix = {{ include "dashboard.prefix.anrxapp" . }} + anrxapp.url.suffix = {{ .Values.dashboard.anrxapp.url.suffix }} + appmgr.url.prefix = {{ include "dashboard.prefix.appmgr" . }} + appmgr.url.suffix = {{ .Values.dashboard.appmgr.url.suffix }} + e2mgr.url.prefix = {{ include "dashboard.prefix.e2mgr" . }} + e2mgr.url.suffix = {{ .Values.dashboard.e2mgr.url.suffix }} + portalapi.appname = {{ .Values.dashboard.portalapi.appname }} + portalapi.username = {{ .Values.dashboard.portalapi.username }} + portalapi.password = {{ .Values.dashboard.portalapi.password }} + + key.properties: | + cipher.enc.key = {{ .Values.dashboard.cipher.enc.key }} + + portal.properties: | + # fixed values + portal.api.impl.class = org.oransc.ric.portal.dashboard.portalapi.PortalRestCentralServiceImpl + role_access_centralized = remote + # variable values + ecomp_redirect_url = {{ .Values.dashboard.portalapi.ecomp_redirect_url }} + ecomp_rest_url = {{ .Values.dashboard.portalapi.ecomp_rest_url }} + ueb_app_key = {{ .Values.dashboard.portalapi.ueb_app_key }}