Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
修改ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-657667 committed Nov 24, 2023
1 parent a4a7900 commit 1a0c700
Showing 1 changed file with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ jobs:
exit 0
done
- name: check module
- name: batch release successfully then check module install
run: |
label_selector="app=dynamic-stock"
max_attempts=10
Expand Down Expand Up @@ -328,4 +328,22 @@ jobs:
# 如果是最后一次尝试,则输出超时消息
echo "已达到最大尝试次数。有些Pod未满足条件。"
fi
done
done
- name: batch scaledown
run: |
kubectl apply -f config/samples/ci/module-deployment_v1alpha1_moduledeployment_batch_provider_scaledown.yaml
- run: sleep 15

- name: get module
run: |
kubectl get module -oyaml
- name: exist module
run: |
moduleCount=$(kubectl get module | wc -l)
if [[ $moduleCount -ge 2 ]]; then
echo "缩容失败"
exit 1
fi

0 comments on commit 1a0c700

Please sign in to comment.