Add standalone R3 RIC platform helm charts and deployment scripts.
[ric-plt/ric-dep.git] / helm / rsm / templates / configmap.yaml
1 ################################################################################
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
3 #                                                                              #
4 #   Licensed under the Apache License, Version 2.0 (the "License");            #
5 #   you may not use this file except in compliance with the License.           #
6 #   You may obtain a copy of the License at                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
10 #   Unless required by applicable law or agreed to in writing, software        #
11 #   distributed under the License is distributed on an "AS IS" BASIS,          #
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
13 #   See the License for the specific language governing permissions and        #
14 #   limitations under the License.                                             #
15 ################################################################################
16 ---
17 apiVersion: v1
18 kind: ConfigMap
19 metadata:
20   name: {{ include "common.configmapname.rsm" . }}-router-configmap
21   namespace: {{ include "common.namespace.platform" . }}
22 data:
23   rmr_verbose: |
24     0
25   router.txt: |
26     newrt|start
27     rte|10090|{{ include "common.servicename.e2term.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
28     newrt|end
29 ---
30 apiVersion: v1
31 kind: ConfigMap
32 metadata:
33   name: {{ include "common.configmapname.rsm" . }}
34   namespace: {{ include "common.namespace.platform" . }}
35 data:
36   configuration.yaml: |
37     logging:
38       {{- if hasKey .Values.rsm "logLevel" }}
39       logLevel: {{ .Values.rsm.logLevel }}
40       {{- else }}
41       logLevel:  "info"
42       {{- end }}
43     http:
44       {{- if hasKey .Values.rsm "httpPort" }}
45       port: {{ .Values.rsm.httpPort }}
46       {{- else }}
47       port: 4800
48       {{- end }}
49     rmr:
50       {{- if hasKey .Values.rsm "rmrPort" }}
51       port: {{ .Values.rsm.rmrPort }}
52       {{- else }}
53       port: 4801
54       {{- end }}
55       {{- if hasKey .Values.rsm "maxMsgSize" }}
56       maxMsgSize: {{ .Values.rsm.maxMsgSize }}
57       {{- else }}
58       maxMsgSize: 4096
59       {{- end }}
60       {{- if hasKey .Values.rsm "readyIntervalSec" }}
61       readyIntervalSec: {{ .Values.rsm.readyIntervalSec }}
62       {{- else }}
63       readyIntervalSec: 1
64       {{- end }}
65     rnib:
66       {{- if hasKey .Values.rsm "maxRnibConnectionAttempts" }}
67       maxRnibConnectionAttempts: {{ .Values.rsm.maxRnibConnectionAttempts }}
68       {{- else }}
69       maxRnibConnectionAttempts: 3
70       {{- end }}
71       {{- if hasKey .Values.rsm "rnibRetryIntervalMs" }}
72       rnibRetryIntervalMs: {{ .Values.rsm.rnibRetryIntervalMs }}
73       {{- else }}
74       rnibRetryIntervalMs: 10
75       {{- end }}
76     characteristics:
77       {{- if hasKey .Values.rsm "enableResourceStatus" }}
78       enableResourceStatus: {{ .Values.rsmenableResourceStatus }}
79       {{- else }}
80       enableResourceStatus: true
81       {{- end }}
82       {{- if hasKey .Values.rsm "prbPeriodic" }}
83       prbPeriodic: {{ .Values.rsm.prbPeriodic }}
84       {{- else }}
85       prbPeriodic: true
86       {{- end }}
87       {{- if hasKey .Values.rsm "tnlLoadIndPeriodic" }}
88       tnlLoadIndPeriodic: {{ .Values.rsm.tnlLoadIndPeriodic }}
89       {{- else }}
90       tnlLoadIndPeriodic: true
91       {{- end }}
92       {{- if hasKey .Values.rsm "hwLoadIndPeriodic" }}
93       hwLoadIndPeriodic: {{ .Values.rsm.hwLoadIndPeriodic }}
94       {{- else }}
95       hwLoadIndPeriodic: true
96       {{- end }}
97       {{- if hasKey .Values.rsm "absStatusPeriodic" }}
98       absStatusPeriodic: {{ .Values.rsm.absStatusPeriodic }}
99       {{- else }}
100       absStatusPeriodic: true
101       {{- end }}
102       {{- if hasKey .Values.rsm "rsrpMeasurementPeriodic" }}
103       rsrpMeasurementPeriodic: {{ .Values.rsm.rsrpMeasurementPeriodic }}
104       {{- else }}
105       rsrpMeasurementPeriodic: true
106       {{- end }}
107       {{- if hasKey .Values.rsm "csiPeriodic" }}
108       csiPeriodic: {{ .Values.rsm.csiPeriodic }}
109       {{- else }}
110       csiPeriodic: true
111       {{- end }}
112       {{- if hasKey .Values.rsm "periodicityMs" }}
113       periodicityMs: {{ .Values.rsm.periodicityMs }}
114       {{- else }}
115       periodicityMs: 1
116       {{- end }}
117       {{- if hasKey .Values.rsm "periodicityRsrpMeasurementMs" }}
118       periodicityRsrpMeasurementMs: {{ .Values.rsm.periodicityRsrpMeasurementMs }}
119       {{- else }}
120       periodicityRsrpMeasurementMs: 120
121       {{- end }}
122       {{- if hasKey .Values.rsm "periodicityCsiMs" }}
123       periodicityCsiMs: {{ .Values.rsm.periodicityCsiMs }}
124       {{- else }}
125       periodicityCsiMs: 5
126       {{- end }}
127     resourceStatusParams:
128       enableResourceStatus: true
129       partialSuccessAllowed: true
130       prbPeriodic: true
131       tnlLoadIndPeriodic: true
132       hwLoadIndPeriodic: true
133       absStatusPeriodic: true
134       rsrpMeasurementPeriodic: true
135       csiPeriodic: true
136       periodicityMs: 1000
137       periodicityRsrpMeasurementMs: 480
138       periodicityCsiMs: 20
139 ---