Skip to content

Commit

Permalink
[type:fix] e2e k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
moremind committed Oct 9, 2023
1 parent 8ab0fcc commit 356a49d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ kubectl apply -f "${PRGDIR}"/shenyu-cm.yml
SYNC_ARRAY=("websocket" "http" "zookeeper" "etcd")
MIDDLEWARE_SYNC_ARRAY=("zookeeper" "etcd")
for sync in ${SYNC_ARRAY[@]}; do
echo -e "------------------\n"
kubectl apply -f "$SHENYU_TESTCASE_DIR"/k8s/shenyu-mysql.yml
sleep 20s
echo -e "------------------\n"
echo "[Start ${sync} synchronous] create shenyu-admin-${sync}.yml shenyu-bootstrap-${sync}.yml shenyu-examples-springcloud.yml"
# shellcheck disable=SC2199
# shellcheck disable=SC2076
if [[ "${MIDDLEWARE_SYNC_ARRAY[@]}" =~ "${sync}" ]]; then
kubectl apply -f "$SHENYU_TESTCASE_DIR"/k8s/shenyu-"${sync}".yml
kubectl apply -f "${SHENYU_TESTCASE_DIR}"/k8s/shenyu-"${sync}".yml
sleep 10s
fi
kubectl apply -f "${PRGDIR}"/shenyu-admin-"${sync}".yml
Expand All @@ -61,7 +61,7 @@ for sync in ${SYNC_ARRAY[@]}; do
echo "${sync}-sync-e2e-test failed"
exit 1
fi
kubectl delete -f "$SHENYU_TESTCASE_DIR"/k8s/shenyu-mysql.yml
kubectl delete -f "${SHENYU_TESTCASE_DIR}"/k8s/shenyu-mysql.yml
kubectl delete -f "${PRGDIR}"/shenyu-admin-"${sync}".yml
kubectl delete -f "${PRGDIR}"/shenyu-bootstrap-"${sync}".yml
kubectl delete -f "${PRGDIR}"/shenyu-examples-springcloud.yml
Expand Down

0 comments on commit 356a49d

Please sign in to comment.