SMO NONRTRIC - Fix service manager preload
[it/dep.git] / ric-aux / 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.yaml: |
31     server:
32       port: {{ include "common.serviceport.dashboard.container" . }}
33     userfile: {{ .Values.dashboard.userfile }}
34     portalapi:
35       # constants for all deployments
36       decryptor: org.oransc.ric.portal.dashboard.portalapi.PortalSdkDecryptorAes
37       usercookie: UserId
38       # different in all deployments
39       security: {{ .Values.dashboard.portalapi.security }}
40       appname: {{ .Values.dashboard.portalapi.appname  }}
41       username: {{ .Values.dashboard.portalapi.username }}
42       password: {{ .Values.dashboard.portalapi.password }}
43     a1med:
44       url:
45         suffix: {{ .Values.dashboard.a1med.url.suffix   }}
46     appmgr:
47       url:
48         suffix: {{ .Values.dashboard.appmgr.url.suffix  }}
49     e2mgr:
50       url:
51         suffix: {{ .Values.dashboard.e2mgr.url.suffix   }}
52     caasingress:
53       insecure: {{ .Values.dashboard.caasingress.insecure  }}
54       plt:
55         url:
56           suffix: {{ .Values.dashboard.caasingress.plt.url.suffix  }}
57     ricinstances:
58 {{ tpl .Values.dashboard.ricinstances . | indent 6 }}
59
60   key.properties: |
61     cipher.enc.key     = {{ .Values.dashboard.cipher.enc.key }}
62
63   portal.properties: |
64     # fixed values
65     portal.api.impl.class = org.oransc.ric.portal.dashboard.portalapi.PortalRestCentralServiceImpl
66     role_access_centralized = remote
67     # variable values
68     ecomp_redirect_url = {{ .Values.dashboard.portalapi.ecomp_redirect_url }}
69     ecomp_rest_url     = {{ .Values.dashboard.portalapi.ecomp_rest_url }}
70     ueb_app_key        = {{ .Values.dashboard.portalapi.ueb_app_key }}
71
72   # Temp solution before Portal 2.6
73   users.json: |
74     [{"orgId":null,"managerId":null,"firstName":"First","middleInitial":null,"lastName":"Last","phone":null,"email":null,"hrid":null,"orgUserId":null,"orgCode":null,"orgManagerUserId":null,"jobTitle":null,"loginId":"demo","active":true,"roles":[{"id":1,"name":"System_Administrator","roleFunctions":null}]}]