Commit df6a1b64 by 据说甜蜜呢

Remove the heading line

parent c03eb0c4
Pipeline #4296 passed with stage
in 19 seconds
......@@ -9,7 +9,8 @@ source ./devops/PipeLines/Functions.core.sh
GetNameSpace namespace
echo "[${Environment}]Begin cleaning..."
declare replicas=$(kubectl -n ${namespace} get rs)
# Remove the heading line.
declare replicas=$(kubectl -n ${namespace} get rs|awk 'NR > 1')
for row in $replicas
do
declare name=$(echo "${row}"|awk '{print $1}')
......
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