[skip ci]Add parameter passing to shell scripts (#10600)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/10605/head
zhuwenxing 2021-10-25 20:34:23 +08:00 committed by GitHub
parent 44e9391231
commit 138669487d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 7 deletions

View File

@ -13,6 +13,7 @@ fi
echo "platform: $platform"
# define chaos testing object
release=${1:-"milvus-chaos"}
pod="pulsar"
chaos_type="pod_kill"
release="milvus-chaos"
@ -21,9 +22,9 @@ ns="chaos-testing"
# install milvus cluster for chaos testing
pushd ./scripts
echo "uninstall milvus if exist"
bash uninstall_milvus.sh || true
bash uninstall_milvus.sh ${release}|| true
echo "install milvus"
bash install_milvus.sh
bash install_milvus.sh ${release}
popd
# replace chaos object as defined

View File

@ -1,5 +1,6 @@
release=${1:-"milvs-chaos"}
bash uninstall_milvus.sh || true
bash uninstall_milvus.sh ${release} || true
helm install --wait --timeout 360s milvus-chaos milvus/milvus --set service.type=NodePort -f ../cluster-values.yaml -n=chaos-testing
helm install --wait --timeout 360s ${release} milvus/milvus --set service.type=NodePort -f ../cluster-values.yaml -n=chaos-testing

View File

@ -1,5 +1,6 @@
set -e
helm uninstall milvus-chaos
kubectl delete pvc -l release=milvus-chaos
kubectl delete pvc -l app.kubernetes.io/instance=milvus-chaos
release=${1:-"milvus-chaos"}
helm uninstall ${release}
kubectl delete pvc -l release=${release}
kubectl delete pvc -l app.kubernetes.io/instance=${release}