Sync up to the latest it/dep commit.
[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 ---