未验证 提交 888840c0 编写于 作者: Z zhuwenxing 提交者: GitHub

[skip e2e]Fix image tag for upgrade and standalone helm uninstall (#14246)

Signed-off-by: Nzhuwenxing <wenxing.zhu@zilliz.com>
上级 516dc1b9
......@@ -129,11 +129,11 @@ jobs:
# if the task is upgrade, install milvus with latest rc image in repo milvusdb/milvus
if [ ${{ matrix.task }} == "upgrade" ] && [ ${{ matrix.mode }} == "cluster" ]; then
echo "task: ${{ matrix.task }} mode: ${{ matrix.mode }}";
helm install --wait --timeout 720s deploy-testing milvus/milvus --set image.all.repository=milvusdb/milvus -f cluster-values.yaml;
helm install --wait --timeout 720s deploy-testing milvus/milvus --set image.all.tag=master-20211225-6177d46 -f cluster-values.yaml;
fi
if [ ${{ matrix.task }} == "upgrade" ] && [ ${{ matrix.mode }} == "standalone" ]; then
echo "task: ${{ matrix.task }} mode: ${{ matrix.mode }}";
helm install --wait --timeout 720s deploy-testing milvus/milvus --set image.all.repository=milvusdb/milvus -f standalone-values.yaml;
helm install --wait --timeout 720s deploy-testing milvus/milvus --set image.all.tag=master-20211225-6177d46 -f standalone-values.yaml;
fi
kubectl get pods
......@@ -151,15 +151,20 @@ jobs:
# uninstall milvus
if [[ $(date +%w) -eq 0 || $(data +%w) -eq 6 ]]; then sleep 1800s; fi
helm uninstall deploy-testing
if [ ${{ matrix.mode }} == "standalone" ];
then
kubectl delete pod -l app.kubernetes.io/instance=deploy-testing --grace-period=0 --force;
kubectl delete pod -l release=deploy-testing --grace-period=0 --force;
else
helm uninstall deploy-testing
fi
- name: Seconde Milvus Deployment
timeout-minutes: 60
shell: bash
working-directory: tests/python_client/deploy
run: |
if [ ${{ matrix.mode }} == "cluster" ]; then helm install --wait --timeout 720s deploy-testing milvus/milvus -f cluster-values.yaml; fi
if [ ${{ matrix.mode }} == "standalone" ]; then helm install --wait --timeout 720s deploy-testing milvus/milvus -f standalone-values.yaml; fi
if [ ${{ matrix.mode }} == "standalone" ]; then helm upgrade --wait --timeout 720s deploy-testing milvus/milvus -f standalone-values.yaml; fi
kubectl get pods
sleep 20s
kubectl get pods
......
......@@ -141,7 +141,7 @@ fi
if [ "$Task" == "upgrade" ];
then
printf "start to deploy previous rc tag milvus\n"
replace_image_tag "master-20211216-7e56f08"
replace_image_tag "master-20211225-6177d46" # replace previous rc tag with master-20211225-6177d46
fi
cat docker-compose.yml|grep milvusdb
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册