mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add parameter passing to shell scripts (#10600)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/10605/head
parent
44e9391231
commit
138669487d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue