1 # Copyright (c) 2019 AT&T Intellectual Property.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 {{- $domain := default "cluster.local" .Values.ric.cluster.domain }}
16 {{- $ricpltNS := include "common.namespace.platform" . }}
17 {{- $xappNS := include "common.namespace.xapp" . }}
18 {{- $ricplt := printf "%s.svc.%s" $ricpltNS $domain }}
19 {{- $release := default "r1" .Values.ric.robot.release }}
20 {{- $testxapp := default "robot-xapp" .Values.ric.robot.environment.xapp }}
21 {{- $dt := "deployment" }}
22 {{- $e2_suff := "alpha" }}
26 Documentation store all properties that can change or are used in multiple places here
27 ... format is all caps with underscores between words and prepended with GLOBAL
28 ... make sure you prepend them with GLOBAL so that other files can easily see it is from this file.
32 #{{ printf "%s.%s" (include "common.servicename.a1mediator.http" .) $ricplt }}
33 # {{ printf "%s-alpha.%s" (include "common.servicename.e2term.rmr" .) $ricplt}}
34 &{GLOBAL_RICPLT_COMPONENTS} {{- range $k, $v := .Values.ric.platform.components }}
36 {{- $ct := index $v "controller" }}
38 {{- $dt = index $ct "type" | default "deployment" | lower }}
39 {{- $ds = index $ct "suffix" | default "" }}
41 {{- $ds = (printf "-%s" $ds) }}
44 {{- $dt = "deployment" }}
48 ... {{$k}}={{$dt}}|{{include (printf "common.%sname.%s" $dt $k) $}}{{$ds}}
50 &{GLOBAL_RICPLT_XAPPS} {{- range keys .Values.ric.xapp }}
51 ... {{.}}={{ printf "%s-%s" $xappNS . }}
54 ${GLOBAL_PLMNID} {{ .Values.ric.robot.environment.gNodeB.plmnid }}
55 ${GLOBAL_GNBID} {{ .Values.ric.robot.environment.gNodeB.gnbid }}
58 ${GLOBAL_APPLICATION_ID} {{ default "r0" .Values.ric.robot.release | printf "nanobot-%s" }}
59 ${GLOBAL_BUILD_NUMBER} {{ default "0" .Values.ric.platform.build }}
60 ${GLOBAL_RICPLT_NAMESPACE} {{ $ricpltNS }}
61 ${GLOBAL_XAPP_NAMESPACE} {{ $xappNS }}
63 {{- if .Values.ric.platform.components.appmgr }}
64 ${GLOBAL_APPMGR_SERVER_PROTOCOL} {{ default "http" .Values.ric.platform.components.appmgr.protocol }}
65 ${GLOBAL_INJECTED_APPMGR_IP_ADDR} {{ printf "%s.%s" (include "common.servicename.appmgr.http" .) $ricplt }}
66 ${GLOBAL_APPMGR_SERVER_PORT} {{ include "common.serviceport.appmgr.http" . }}
67 ${GLOBAL_INJECTED_APPMGR_USER} {{ .Values.ric.platform.components.appmgr.user }}
68 ${GLOBAL_INJECTED_APPMGR_PASSWORD} {{ .Values.ric.platform.components.appmgr.password }}
71 {{- if .Values.ric.platform.components.e2mgr }}
72 ${GLOBAL_E2MGR_SERVER_PROTOCOL} {{ default "http" .Values.ric.platform.components.e2mgr.protocol }}
73 ${GLOBAL_INJECTED_E2MGR_IP_ADDR} {{ printf "%s.%s" (include "common.servicename.e2mgr.http" .) $ricplt }}
74 ${GLOBAL_E2MGR_SERVER_PORT} {{ include "common.serviceport.e2mgr.http" . }}
75 ${GLOBAL_INJECTED_E2MGR_USER} {{ .Values.ric.platform.components.e2mgr.user }}
76 ${GLOBAL_INJECTED_E2MGR_PASSWORD} {{ .Values.ric.platform.components.e2mgr.password }}
79 {{- if .Values.ric.platform.components.e2term }}
80 ${GLOBAL_INJECTED_E2TERM_IP_ADDR} {{ printf "%s-alpha.%s" (include "common.servicename.e2term.rmr" .) $ricplt}}
81 ${GLOBAL_E2TERM_SERVER_PORT} {{ include "common.serviceport.e2term.rmr.data" . }}
84 {{- if .Values.ric.platform.components.rtmgr }}
85 ${GLOBAL_RTMGR_SERVER_PROTOCOL} {{ default "http" .Values.ric.platform.components.rtmgr.protocol }}
86 ${GLOBAL_INJECTED_RTMGR_IP_ADDR} {{ printf "%s.%s" (include "common.servicename.rtmgr.http" .) $ricplt }}
87 ${GLOBAL_RTMGR_SERVER_PORT} {{ include "common.serviceport.rtmgr.http" . }}
88 ${GLOBAL_RTMGR_SERVER_HTTP_PORT} {{ default "8080" }}
89 ${GLOBAL_INJECTED_RTMGR_USER} {{ .Values.ric.platform.components.rtmgr.user }}
90 ${GLOBAL_INJECTED_RTMGR_PASSWORD} {{ .Values.ric.platform.components.rtmgr.password }}
94 {{- if .Values.ric.platform.components.a1mediator }}
95 ${GLOBAL_A1MEDIATOR_SERVER_PROTOCOL} {{ default "http" .Values.ric.platform.components.a1mediator.protocol }}
96 ${GLOBAL_INJECTED_A1MEDIATOR_IP_ADDR} {{ printf "%s.%s" (include "common.servicename.a1mediator.http" .) $ricplt }}
97 ${GLOBAL_A1MEDIATOR_SERVER_PORT} {{ include "common.serviceport.a1mediator.http" . }}
98 ${GLOBAL_A1MEDIATOR_POLICY_ID} {{ default "6266268" .Values.ric.platform.components.a1mediator.policyID }}
99 ${GLOBAL_A1MEDIATOR_TARGET_XAPP} {{ default $testxapp .Values.ric.platform.components.a1mediator.xappName }}
102 {{- if .Values.ric.platform.components.o1mediator }}
103 ${GLOBAL_O1MEDIATOR_SERVER_PROTOCOL} {{ default "http" .Values.ric.platform.components.o1mediator.protocol }}
104 ${GLOBAL_O1MEDIATOR_HTTP_SERVER} {{ printf "%s.%s" (include "common.servicename.o1mediator.http" .) $ricplt }}
105 ${GLOBAL_O1MEDIATOR_SERVER_PORT} {{ include "common.serviceport.o1mediator.http" . }}
106 ${GLOBAL_O1MEDIATOR_HOST} {{ printf "%s.%s" (include "common.servicename.o1mediator.tcp.netconf" .) $ricplt }}
107 ${GLOBAL_O1MEDIATOR_PORT} {{ include "common.serviceport.o1mediator.tcp.netconf" . }}
108 ${GLOBAL_O1MEDIATOR_USER} {{ .Values.ric.platform.components.o1mediator.user }}
109 ${GLOBAL_O1MEDIATOR_PASSWORD} {{ .Values.ric.platform.components.o1mediator.password }}
110 ${GLOBAL_O1MEDIATOR_TARGET_XAPP} {{ default $testxapp .Values.ric.platform.components.o1mediator.xapp.name }}
111 ${GLOBAL_O1MEDIATOR_XAPP_VERSION} {{ default "1.0" .Values.ric.platform.components.o1mediator.xapp.version }}
112 ${GLOBAL_O1MEDIATOR_DEPLOYMENT_WAIT} {{ default "180" .Values.ric.platform.components.o1mediator.xapp.wait }}
115 {{- if .Values.ric.platform.components.submgr }}
116 ${GLOBAL_SUBMGR_SERVER_PROTOCOL} {{ default "http" .Values.ric.platform.components.submgr.protocol }}
117 ${GLOBAL_SUBMGR_HTTP_SERVER} {{ printf "%s.%s" (include "common.servicename.submgr.http" .) $ricplt }}
118 ${GLOBAL_SUBMGR_SERVER_PORT} {{ include "common.serviceport.submgr.http" . }}
119 ${GLOBAL_SUBMGR_SERVER_PROTOCOL} {{ default "http" .Values.ric.platform.components.submgr.protocol }}
120 ${GLOBAL_INJECTED_SUBMGR_IP_ADDR} {{ printf "%s.%s" (include "common.servicename.submgr.http" .) $ricplt }}
121 ${GLOBAL_INJECTED_SUBMGR_USER} {{ .Values.ric.platform.components.submgr.user }}
122 ${GLOBAL_INJECTED_SUBMGR_PASSWORD} {{ .Values.ric.platform.components.submgr.password }}
125 ${GLOBAL_TEST_XAPP} {{ default "xapp-std" .Values.ric.robot.environment.xapp }}
126 ${GLOBAL_TEST_XAPP_ONBOARDER} {{ default "deployment|deployment-ricplt-xapp-onboarder" }}
128 ${GLOBAL_TEST_NODEB_NAME} {{ default "AAAA456789" .Values.ric.robot.environment.gNodeB.name }}
129 ${GLOBAL_TEST_NODEB_ADDRESS} {{ default "10.0.0.3" .Values.ric.robot.environment.gNodeB.address }}
130 ${GLOBAL_TEST_NODEB_PORT} {{ default "36421" .Values.ric.robot.environment.gNodeB.port }}
132 ${GLOBAL_DASH_SERVER_PROTOCOL} {{ default "http" .Values.ric.robot.environment.dashboard.protocol }}
133 ${GLOBAL_DASH_SERVER_PORT} {{ default "31080" .Values.ric.robot.environment.dashboard.port }}
134 ${GLOBAL_INJECTED_DASH_IP_ADDR} {{ default "127.0.0.1" .Values.ric.robot.environment.dashboard.port }}
135 ${GLOBAL_XAPP} {{ .Values.ric.robot.environment.xapp }}
136 ${GLOBAL_XAPP_DEPLOYMENT} {{ printf "%s-%s" ($xappNS) .Values.ric.robot.environment.xapp }}
137 ${GLOBAL_XAPPKPIMON_DEPLOYMENT} {{ printf "%s" .Values.ric.robot.environment.xapp }}
138 ${Global_RAN_NAMESPACE} {{ .Values.ric.robot.environment.gNodeB.ran_namespace }}
139 ${Global_RAN_DEPLOYMENT} {{ .Values.ric.robot.environment.gNodeB.ran_deployment }}