mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
[skip e2e]Fix image tag for upgrade and standalone helm uninstall (#14246)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
516dc1b99e
commit
888840c0a9
15
.github/workflows/deploy-test.yaml
vendored
15
.github/workflows/deploy-test.yaml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user