Commit 1b961dc7 by 据说甜蜜呢

添加文件

parent ec370958
#!/bin/bash
set -e
echo "Begin testing..."
declare dir='./test/ServicesTests'
for prefix in `ls ${dir}|xargs -d '/'`
do
dotnet test "${dir}/${prefix}/${prefix}.csproj"
done
echo "Test completed."
\ No newline at end of file
#!/bin/bash
IFS=$'\n\n'
# Import external functions
chmod +x ./devops/PipeLines/Functions.core.sh
sh ./devops/PipeLines/Functions.core.sh
GetNameSpace namespace
declare replicas=$(kubectl -n ${namespace} get rs)
for row in $replicas
do
declare name=$(echo "${row}"|awk '{print $1}')
declare desired=$(echo "${row}"|awk '{print $2}')
declare current=$(echo "${row}"|awk '{print $3}')
declare ready=$(echo "${row}"|awk '{print $4}')
# echo "replica set: ${name}, desired: ${desired}"
if [ $((${desired})) == 0 -a $((${current})) == 0 -a $((${ready})) == 0 ]; then
# echo ${name}
kubectl -n ${namespace} delete rs ${name} --grace-period=0 --force
fi
done
echo 'clean successful...'
exit 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment