1 {{- $ns := default "ricplt" .Values.ric.platform.namespace }}
2 {{- $release := default "r0" .Values.ric.platform.releaseName }}
3 {{- $domain := default "cluster.local" .Values.ric.cluster.domain }}
4 {{- $hostPrefix := printf "service-%s" $ns }}
5 {{- $hostSuffix := printf "%s.svc.%s" $ns $domain }}
6 {{- $appmgrHost := printf "%s-appmgr-http.%s" $hostPrefix $hostSuffix }}
7 {{- $e2mgrHost := printf "%s-e2mgr-http.%s" $hostPrefix $hostSuffix }}
8 {{- $rtmgrHost := printf "%s-rtmgr-rmr.%s" $hostPrefix $hostSuffix }}
9 {{- $dbaasHost := printf "%s-dbaas-tcp.%s" $hostPrefix $hostSuffix }}
10 {{- $a1MediatorHost := printf "%s-a1mediator-http.%s" $hostPrefix $hostSuffix }}
13 Documentation store all properties that can change or are used in multiple places here
14 ... format is all caps with underscores between words and prepended with GLOBAL
15 ... make sure you prepend them with GLOBAL so that other files can easily see it is from this file.
19 ${GLOBAL_APPLICATION_ID} {{- printf "nanobot-%s" $release | indent 4}}
20 ${GLOBAL_BUILD_NUMBER} {{- default "0" .Values.ric.platform.build | indent 4 }}
22 ${GLOBAL_APPMGR_SERVER_PROTOCOL} {{- default "http" .Values.ric.platform.components.appmgr.protocol | indent 4 }}
23 ${GLOBAL_INJECTED_APPMGR_IP_ADDR} {{- default $appmgrHost .Values.ric.platform.components.appmgr.address | indent 4 }}
24 ${GLOBAL_APPMGR_SERVER_PORT} {{- default "8080" .Values.ric.platform.components.appmgr.port | indent 4 }}
25 ${GLOBAL_INJECTED_APPMGR_USER} {{- .Values.ric.platform.components.appmgr.user | indent 4 }}
26 ${GLOBAL_INJECTED_APPMGR_PASSWORD} {{- .Values.ric.platform.components.appmgr.password | indent 4 }}
28 ${GLOBAL_E2MGR_SERVER_PROTOCOL} {{- default "http" .Values.ric.platform.components.e2mgr.protocol | indent 4 }}
29 ${GLOBAL_INJECTED_E2MGR_IP_ADDR} {{- default $e2mgrHost .Values.ric.platform.components.e2mgr.address | indent 4 }}
30 ${GLOBAL_E2MGR_SERVER_PORT} {{- default "3800" .Values.ric.platform.components.e2mgr.port | indent 4 }}
31 ${GLOBAL_INJECTED_E2MGR_USER} {{- .Values.ric.platform.components.e2mgr.user | indent 4 }}
32 ${GLOBAL_INJECTED_E2MGR_PASSWORD} {{- .Values.ric.platform.components.e2mgr.password | indent 4 }}
34 ${GLOBAL_RTMGR_SERVER_PROTOCOL} {{- default "http" .Values.ric.platform.components.rtmgr.protocol | indent 4 }}
35 ${GLOBAL_INJECTED_RTMGR_IP_ADDR} {{- default $rtmgrHost .Values.ric.platform.components.rtmgr.address | indent 4 }}
36 ${GLOBAL_RTMGR_SERVER_PORT} {{- default "5656" .Values.ric.platform.components.rtmgr.port | indent 4 }}
37 ${GLOBAL_INJECTED_RTMGR_USER} {{- .Values.ric.platform.components.rtmgr.user | indent 4 }}
38 ${GLOBAL_INJECTED_RTMGR_PASSWORD} {{- .Values.ric.platform.components.rtmgr.password | indent 4 }}
40 ${GLOBAL_INJECTED_DBAAS_IP_ADDR} {{- default $dbaasHost .Values.ric.platform.components.dbaas.address | indent 4 }}
41 ${GLOBAL_DBAAS_SERVER_PORT} {{- default "6379" .Values.ric.platform.components.dbaas.port | indent 4 }}