зеркало из https://github.com/github/vitess-gh.git
Update local example scripts to use newer `vtctl` commands
Signed-off-by: Andrew Mason <amason@slack-corp.com>
This commit is contained in:
Родитель
fa2a55e68d
Коммит
9f75374ff0
|
@ -40,9 +40,9 @@ etcdctl --endpoints "http://${ETCD_SERVER}" mkdir /vitess/$cell &
|
|||
echo "add $cell CellInfo"
|
||||
set +e
|
||||
# shellcheck disable=SC2086
|
||||
vtctl $TOPOLOGY_FLAGS AddCellInfo \
|
||||
-root /vitess/$cell \
|
||||
-server_address "${ETCD_SERVER}" \
|
||||
vtctl $TOPOLOGY_FLAGS VtctldCommand AddCellInfo \
|
||||
--root /vitess/$cell \
|
||||
--server-address "${ETCD_SERVER}" \
|
||||
$cell
|
||||
set -e
|
||||
|
||||
|
|
|
@ -52,8 +52,8 @@ $KUBECTL create -f ../../go/vt/topo/k8stopo/VitessTopoNodes-crd.yaml
|
|||
# Add the CellInfo description for the cell
|
||||
set +e
|
||||
echo "add $cell CellInfo"
|
||||
vtctl $TOPOLOGY_FLAGS AddCellInfo \
|
||||
-root /vitess/$cell \
|
||||
vtctl $TOPOLOGY_FLAGS VtctldCommand AddCellInfo \
|
||||
--root /vitess/$cell \
|
||||
$cell
|
||||
set -e
|
||||
|
||||
|
|
|
@ -53,9 +53,9 @@ echo "Started zk servers."
|
|||
# If the node already exists, it's fine, means we used existing data.
|
||||
set +e
|
||||
# shellcheck disable=SC2086
|
||||
vtctl $TOPOLOGY_FLAGS AddCellInfo \
|
||||
-root /vitess/$cell \
|
||||
-server_address $ZK_SERVER \
|
||||
vtctl $TOPOLOGY_FLAGS VtctldCommand AddCellInfo \
|
||||
--root /vitess/$cell \
|
||||
--server-address $ZK_SERVER \
|
||||
$cell
|
||||
set -e
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче