File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 value : {{ .Values.cloud_registry.appName }}
2929 - name : HOST_NAME
3030 value : {{ .Values.host_name }}
31+ - name : MONGO_HOST
32+ value : mongodb-{{ .Values.cloud-registry.appName }}
3133 restartPolicy : Never
3234 serviceAccountName : {{ .Values.cloud_registry.appName }}-configurer
3335status : {}
Original file line number Diff line number Diff line change 1010 env
1111 exit 1
1212fi
13+
14+ if [ -z " $MONGO_HOST " ];
15+ then
16+ MONGO_HOST=' mongodb'
17+ fi
18+
1319echo " Inputs:"
1420echo " CONFIG MAP NAME: $CONFIG_MAP_NAME "
1521echo " API SERVER: $APISERVER "
1622echo " APP CONFIG PATH: $APP_CONFIG_PATH "
1723echo " WES APP NAME: $APP_NAME "
1824echo " HOST NAME: $HOST_NAME "
25+ echo " MONGO_HOST: $MONGO_HOST "
1926
2027NAMESPACE=$( cat /var/run/secrets/kubernetes.io/serviceaccount/namespace)
2128
@@ -33,7 +40,8 @@ echo " * Getting current default configuration"
3340APP_CONFIG=$( yq --arg HOST_NAME " $HOST_NAME " \
3441 ' .endpoints.service.url_prefix = "https" |
3542 .endpoints.service.external_host = $HOST_NAME |
36- .endpoints.service.external_port = 443' \
43+ .endpoints.service.external_port = 443 |
44+ .db.host = $MONGO_HOST' \
3745 " $APP_CONFIG_PATH " ) || exit 4
3846
3947echo " * Getting current configMap"
You can’t perform that action at this time.
0 commit comments