04dc74dcf70d23fc770be3fd455abe38971d7c17
[ric-plt/ric-dep.git] / helm / e2mgr / templates / configmap.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 apiVersion: v1
19 kind: ConfigMap
20 metadata:
21   name: {{ include "common.configmapname.e2mgr" . }}-router-configmap
22   namespace: {{ include "common.namespace.platform" . }}
23 data:
24   rmr_verbose: |
25     0
26   router.txt: |
27     newrt|start
28     rte|1080|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
29     rte|1090|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
30     rte|1100|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
31     rte|1200|{{ include "common.servicename.rsm.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.rsm.rmr.data" . }}
32     rte|1210|{{ include "common.servicename.rsm.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.rsm.rmr.data" . }}
33     rte|1220|{{ include "common.servicename.rsm.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.rsm.rmr.data" . }}
34     rte|10020|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
35     rte|10060|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
36     rte|10061|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
37     rte|10062|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
38     rte|10070|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
39     rte|10071|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
40     rte|10080|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
41     rte|10360|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
42     rte|10361|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
43     rte|10362|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
44     rte|10370|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
45     rte|10371|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
46     rte|12010|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
47     rte|12020|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
48     rte|20001|{{ include "common.servicename.a1mediator.rmr" . }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.a1mediator.rmr.data" . }}
49     newrt|end
50
51 ---
52
53 apiVersion: v1
54 kind: ConfigMap
55 metadata:
56   name: {{ include "common.configmapname.e2mgr" . }}-configuration-configmap
57   namespace: {{ include "common.namespace.platform" . }}
58 data:
59   configuration.yaml: |
60     logging:
61       {{- if hasKey .Values.e2mgr "logLevel" }}
62       logLevel: {{ .Values.e2mgr.logLevel }}
63       {{- else }}
64       logLevel:  "info" 
65       {{- end }}     
66     http:
67       {{- if hasKey .Values.e2mgr "httpPort" }}
68       port: {{ .Values.e2mgr.httpPort }}
69       {{- else }}
70       port: 3800
71       {{- end }}
72     rmr:
73       {{- if hasKey .Values.e2mgr "rmrPort" }}
74       port: {{ .Values.e2mgr.rmrPort }}
75       {{- else }}
76       port: 3801
77       {{- end }}
78       {{- if hasKey .Values.e2mgr "maxMsgSize" }}
79       maxMsgSize: {{ .Values.e2mgr.maxMsgSize }}
80       {{- else }}
81       maxMsgSize: 4096
82       {{- end }}
83
84     {{- if hasKey .Values.e2mgr "notificationResponseBuffer" }}
85     notificationResponseBuffer: {{ .Values.e2mgr.notificationResponseBuffer }}
86     {{- else }}
87     notificationResponseBuffer: 100
88     {{- end }} 
89
90     {{- if hasKey .Values.e2mgr "bigRedButtonTimeoutSec" }}
91     bigRedButtonTimeoutSec: {{ .Values.e2mgr.bigRedButtonTimeoutSec }}
92     {{- else }}
93     bigRedButtonTimeoutSec: 5
94     {{- end }}   
95
96     {{- if hasKey .Values.e2mgr "maxConnectionAttempts" }}
97     maxConnectionAttempts: {{ .Values.e2mgr.maxConnectionAttempts }}
98     {{- else }} 
99     maxConnectionAttempts: 3
100     {{- end }}       
101     
102     {{- if hasKey .Values.e2mgr "maxRnibConnectionAttempts" }}
103     maxRnibConnectionAttempts: {{ .Values.e2mgr.maxRnibConnectionAttempts }}
104     {{- else }} 
105     maxRnibConnectionAttempts: 3
106     {{- end }}   
107
108     {{- if hasKey .Values.e2mgr "rnibRetryIntervalMs" }}
109     rnibRetryIntervalMs: {{ .Values.e2mgr.rnibRetryIntervalMs }}
110     {{- else }} 
111     rnibRetryIntervalMs: 10
112     {{- end }}   
113
114 ---