391146734b39485a2b09abf352d7d535ffa6d780
[it/dep.git] / ric-aux / 80-Auxiliary-Functions / helm / dashboard / templates / appconfig.yaml
1 ################################################################################
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
3 #   Copyright (c) 2019 Nokia.                                                  #
4 #                                                                              #
5 #   Licensed under the Apache License, Version 2.0 (the "License");            #
6 #   you may not use this file except in compliance with the License.           #
7 #   You may obtain a copy of the License at                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
11 #   Unless required by applicable law or agreed to in writing, software        #
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
14 #   See the License for the specific language governing permissions and        #
15 #   limitations under the License.                                             #
16 ################################################################################
17
18 # Defines multiple config maps for mounting as files; e.g., application.properties
19 # The keys listed below MUST be configured in each deployment;
20 # this list does not include all keys recognized by the app.
21 # The template directives in the URL prefix definitions use common
22 # K8S ingress values, but use Dashboard values if present.
23
24 apiVersion: v1
25 kind: ConfigMap
26 metadata:
27   name: {{ include "common.configmapname.dashboard" . }}-appconfig
28 data:
29   # one key per file
30   application.properties: |
31     server.port        = {{ include "common.serviceport.dashboard.container" . }}
32     userfile           = {{ .Values.dashboard.userfile }}
33     a1med.url.prefix   = {{ include "dashboard.prefix.a1mediator" . }}
34     a1med.url.suffix   = {{ .Values.dashboard.a1med.url.suffix   }}
35     anrxapp.url.prefix = {{ include "dashboard.prefix.anrxapp" . }}
36     anrxapp.url.suffix = {{ .Values.dashboard.anrxapp.url.suffix }}
37     appmgr.url.prefix  = {{ include "dashboard.prefix.appmgr" .  }}
38     appmgr.url.suffix  = {{ .Values.dashboard.appmgr.url.suffix  }}
39     e2mgr.url.prefix   = {{ include "dashboard.prefix.e2mgr" .   }}
40     e2mgr.url.suffix   = {{ .Values.dashboard.e2mgr.url.suffix   }}
41     portalapi.appname  = {{ .Values.dashboard.portalapi.appname  }}
42     portalapi.username = {{ .Values.dashboard.portalapi.username }}
43     portalapi.password = {{ .Values.dashboard.portalapi.password }}
44     metrics.url.ac     = {{ .Values.dashboard.metrics.url.ac     }}
45     metrics.url.mc     = {{ .Values.dashboard.metrics.url.mc     }}
46
47   key.properties: |
48     cipher.enc.key     = {{ .Values.dashboard.cipher.enc.key }}
49
50   portal.properties: |
51     # fixed values
52     portal.api.impl.class = org.oransc.ric.portal.dashboard.portalapi.PortalRestCentralServiceImpl
53     role_access_centralized = remote
54     # variable values
55     ecomp_redirect_url = {{ .Values.dashboard.portalapi.ecomp_redirect_url }}
56     ecomp_rest_url     = {{ .Values.dashboard.portalapi.ecomp_rest_url }}
57     ueb_app_key        = {{ .Values.dashboard.portalapi.ueb_app_key }}