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=b2ec78774e69585d0488bee58b5008ac6d052d00;hpb=debb34e08e99f3bf5c0348bb1d9731bee7e204aa;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 b2ec7877..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,22 +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 = {{ include "common.serviceport.dashboard.container" . }} - a1med.url.prefix = {{ include "dashboard.prefix.a1mediator" . }} - a1med.url.suffix = {{ .Values.dashboard.properties.a1med.url.suffix }} + 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.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 }} + 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 }}