X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric_robot_suite%2Fhelm%2Fnanobot%2Fconfigmap-src%2Fpublic%2Fproperties%2Fglobal_properties.robot;h=e8c95d0bc2a730d05947a65b43b95d578ed3b383;hb=refs%2Fchanges%2F99%2F3799%2F9;hp=3c15f6277023c008cf2ae2d41e7c90dce2e9ce0a;hpb=3d053f85cc9c42c57850780a18afb0eef425303c;p=it%2Ftest.git diff --git a/ric_robot_suite/helm/nanobot/configmap-src/public/properties/global_properties.robot b/ric_robot_suite/helm/nanobot/configmap-src/public/properties/global_properties.robot index 3c15f62..e8c95d0 100644 --- a/ric_robot_suite/helm/nanobot/configmap-src/public/properties/global_properties.robot +++ b/ric_robot_suite/helm/nanobot/configmap-src/public/properties/global_properties.robot @@ -17,6 +17,9 @@ {{- $xappNS := include "common.namespace.xapp" . }} {{- $ricplt := printf "%s.svc.%s" $ricpltNS $domain }} {{- $release := default "r1" .Values.ric.robot.release }} +{{- $testxapp := default "robot-xapp" .Values.ric.robot.environment.xapp }} +{{- $dt := "deployment" }} +{{- $ds := "" }} # *** Settings *** Documentation store all properties that can change or are used in multiple places here @@ -25,12 +28,26 @@ Documentation store all properties that can change or are used in multipl *** Variables *** -&{GLOBAL_RICPLT_COMPONENTS} {{- range keys .Values.ric.platform.components }} -... {{.}}={{include (printf "common.deploymentname.%s" .) $}} +&{GLOBAL_RICPLT_COMPONENTS} {{- range $k, $v := .Values.ric.platform.components }} + {{- if $v }} + {{- $ct := index $v "controller" }} + {{- if $ct }} + {{- $dt = index $ct "type" | default "deployment" | lower }} + {{- $ds = index $ct "suffix" | default "" }} + {{- if $ds }} + {{- $ds = (printf "-%s" $ds) }} + {{- end }} + {{- else }} + {{- $dt = "deployment" }} + {{- $ds = "" }} + {{- end }} + {{- end }} +... {{$k}}={{$dt}}|{{include (printf "common.%sname.%s" $dt $k) $}}{{$ds}} {{- end }} &{GLOBAL_RICPLT_XAPPS} {{- range keys .Values.ric.xapp }} ... {{.}}={{ printf "%s-%s" $xappNS . }} {{- end }} + # ${GLOBAL_APPLICATION_ID} {{ default "r0" .Values.ric.robot.release | printf "nanobot-%s" }} ${GLOBAL_BUILD_NUMBER} {{ default "0" .Values.ric.platform.build }} @@ -61,8 +78,24 @@ ${GLOBAL_INJECTED_RTMGR_USER} {{ .Values.ric.platform.components.rtmgr.u ${GLOBAL_INJECTED_RTMGR_PASSWORD} {{ .Values.ric.platform.components.rtmgr.password }} {{- end }} # -${GLOBAL_INJECTED_DBAAS_IP_ADDR} {{ printf "%s.%s" (include "common.servicename.dbaas.tcp" .) $ricplt }} -${GLOBAL_DBAAS_SERVER_PORT} {{ include "common.serviceport.dbaas.tcp" . }} +{{- if .Values.ric.platform.components.a1mediator }} +${GLOBAL_A1MEDIATOR_SERVER_PROTOCOL} {{ default "http" .Values.ric.platform.components.a1mediator.protocol }} +${GLOBAL_INJECTED_A1MEDIATOR_IP_ADDR} {{ printf "%s.%s" (include "common.servicename.a1mediator.http" .) $ricplt }} +${GLOBAL_A1MEDIATOR_SERVER_PORT} {{ include "common.serviceport.a1mediator.http" . }} +${GLOBAL_A1MEDIATOR_POLICY_ID} {{ default "6266268" .Values.ric.platform.components.a1mediator.policyID }} +${GLOBAL_A1MEDIATOR_TARGET_XAPP} {{ default $testxapp .Values.ric.platform.components.a1mediator.xappName }} +{{- end }} +# +{{- if .Values.ric.platform.components.o1mediator }} +${GLOBAL_O1MEDIATOR_HOST} {{ printf "%s.%s" (include "common.servicename.o1mediator.tcp.netconf" .) $ricplt }} +${GLOBAL_O1MEDIATOR_PORT} {{ include "common.serviceport.o1mediator.tcp.netconf" . }} +${GLOBAL_O1MEDIATOR_USER} {{ .Values.ric.platform.components.o1mediator.user }} +${GLOBAL_O1MEDIATOR_PASSWORD} {{ .Values.ric.platform.components.o1mediator.password }} +${GLOBAL_O1MEDIATOR_TARGET_XAPP} {{ default $testxapp .Values.ric.platform.components.o1mediator.xapp.name }} +${GLOBAL_O1MEDIATOR_XAPP_VERSION} {{ default "1.0" .Values.ric.platform.components.o1mediator.xapp.version }} +${GLOBAL_O1MEDIATOR_DEPLOYMENT_WAIT} {{ default "180" .Values.ric.platform.components.o1mediator.xapp.wait }} +{{- end }} +# # ${GLOBAL_TEST_XAPP} {{ default "xapp-std" .Values.ric.robot.environment.xapp }} #