diff options
Diffstat (limited to 'deployments')
-rwxr-xr-x | deployments/_functions.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deployments/_functions.sh b/deployments/_functions.sh index 7942aed0..45f2d8cf 100755 --- a/deployments/_functions.sh +++ b/deployments/_functions.sh @@ -21,11 +21,16 @@ function start_mongo { } function generate_k8sconfig { + local ovn_address + if [ -n "${OVN_CENTRAL_ADDRESS:-}" ]; then + ovn_address="\"ovn-central-address\": \"${OVN_CENTRAL_ADDRESS}\"," + fi cat << EOF > k8sconfig.json { - "database-address": "${DATABASE_IP}", + "database-address": "${DATABASE_IP}", "database-type": "mongo", "plugin-dir": "plugins", + ${ovn_address} "service-port": "9015" } EOF |