Skip to content

Commit

Permalink
add switch for ENABLE_OVN_LEADER_CHECK
Browse files Browse the repository at this point in the history
Signed-off-by: Changlu Yi <[email protected]>
  • Loading branch information
changluyi committed Jan 29, 2024
1 parent 7e91429 commit 8089731
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions dist/images/start-ic-db.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
set -eo pipefail

TS_NAME=${TS_NAME:-ts}
LOCAL_IP=${LOCAL_IP:-$POD_IP}
TS_NUM=${TS_NUM:-ts}
ENABLE_BIND_LOCAL_IP=${ENABLE_BIND_LOCAL_IP:-true}
ENABLE_OVN_LEADER_CHECK=${ENABLE_OVN_LEADER_CHECK:-true}

DB_ADDR=::
if [[ $ENABLE_BIND_LOCAL_IP == "true" ]]; then
Expand Down Expand Up @@ -211,5 +211,11 @@ else
fi
fi

chmod 600 /etc/ovn/*
/kube-ovn/kube-ovn-leader-checker --probeInterval=${OVN_LEADER_PROBE_INTERVAL} --isICDBServer=true
if [[ $ENABLE_OVN_LEADER_CHECK == "true" ]]; then
chmod 600 /etc/ovn/*
/kube-ovn/kube-ovn-leader-checker --probeInterval=${OVN_LEADER_PROBE_INTERVAL} --isICDBServer=true
else

tail --follow=name --retry /var/log/ovn/ovsdb-server-ic-nb.log
fi

0 comments on commit 8089731

Please sign in to comment.