summaryrefslogtreecommitdiffstats
path: root/deployments
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2019-07-23 08:32:54 +0200
committerKonrad Bańka <k.banka@samsung.com>2019-07-23 10:09:20 +0200
commit47672cb17cffbac11233056a9576a1b956984c8f (patch)
tree6ab7c16283bfc07771582ae4614c9ab079539e54 /deployments
parent71a2a9c8b8c77cee67571549a06c96ceb3781077 (diff)
Provide ovn-central-address for local deployments
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 <k.banka@samsung.com> Change-Id: Ie3c27c68c02a0e206f6447e8c4330e18af942cd8
Diffstat (limited to 'deployments')
-rwxr-xr-xdeployments/_functions.sh7
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