Skip to content

Commit fa8a1b0

Browse files
authored
Allow mongodb host config (#52)
* Fix bug * Add dependdency
1 parent 0a4c7ff commit fa8a1b0

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
connexion>=2.11.2,<3.0.0
22
foca==0.12.1
3+
yq==3.2.3

update-config-map.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ echo "Current Kubernetes namespace: $NAMESPACE"; echo
3838
echo " * Getting current default configuration"
3939

4040
APP_CONFIG=$(yq --arg HOST_NAME "$HOST_NAME" \
41+
--arg MONGO_HOST "$MONGO_HOST" \
4142
'.endpoints.service.url_prefix = "https" |
4243
.endpoints.service.external_host = $HOST_NAME |
4344
.endpoints.service.external_port = 443 |

0 commit comments

Comments
 (0)