From 47672cb17cffbac11233056a9576a1b956984c8f Mon Sep 17 00:00:00 2001 From: Konrad Bańka Date: Tue, 23 Jul 2019 08:32:54 +0200 Subject: Provide ovn-central-address for local deployments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit K8splugin served with docker-compose doesn't utilize ovn-central-address configured in host environment. Function responsible for generating config file has been modified to provide this information if available. Issue-ID: MULTICLOUD-708 Signed-off-by: Konrad Bańka Change-Id: Ie3c27c68c02a0e206f6447e8c4330e18af942cd8 --- deployments/_functions.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit 1.2.3-korg