99 pool :
1010 name : " $(BUILD_POOL_NAME_DEFAULT)"
1111 steps :
12- - task : AzureCLI@1
12+ - task : AzureCLI@2
1313 inputs :
1414 azureSubscription : $(TEST_SUB_SERVICE_CONNECTION)
1515 scriptLocation : " inlineScript"
@@ -27,12 +27,12 @@ stages:
2727 kubectl apply -f test/integration/manifests/cilium/cilium-operator
2828 echo "Keep CNS version up to date, grabbing pipeline parameter"
2929 CNS_IMAGE=${CNS_IMAGE}
30- sed -i '/containers:/{n;n;s/\(image\).*/\1: '"${CNS_IMAGE//\//\\/}"'/}' test/integration/manifests/cns/daemonset.yaml
31- kubectl apply -f test/integration/manifests/cns/daemonset.yaml
30+ sed -i '/containers:/{n;n;s/\(image\).*/\1: '"${CNS_IMAGE//\//\\/}"'/}' test/integration/manifests/cns/daemonset.yaml
31+ kubectl apply -f test/integration/manifests/cns/daemonset.yaml
3232 for val in $(az vmss list -g MC_${clusterName}_${clusterName}_$(REGION_AKS_CLUSTER_TEST) --query "[].name" -o tsv); do
3333 make -C ./hack/aks restart-vmss AZCLI=az CLUSTER=${clusterName} REGION=$(REGION_AKS_CLUSTER_TEST) VMSS_NAME=${val}
3434 done
35- kubectl get node
35+ kubectl get node
3636 kubectl get pod -A
3737 name : " UpdateCiliumandCNSVersion"
3838 displayName : " Update Cilium and CNS Version"
@@ -43,7 +43,7 @@ stages:
4343 pool :
4444 name : " $(BUILD_POOL_NAME_DEFAULT)"
4545 steps :
46- - task : AzureCLI@1
46+ - task : AzureCLI@2
4747 inputs :
4848 azureSubscription : $(TEST_SUB_SERVICE_CONNECTION)
4949 scriptLocation : " inlineScript"
@@ -63,7 +63,7 @@ stages:
6363 pool :
6464 name : " $(BUILD_POOL_NAME_DEFAULT)"
6565 steps :
66- - task : AzureCLI@1
66+ - task : AzureCLI@2
6767 inputs :
6868 azureSubscription : $(TEST_SUB_SERVICE_CONNECTION)
6969 scriptLocation : " inlineScript"
@@ -72,7 +72,7 @@ stages:
7272 inlineScript : |
7373 echo "Set node label scale-test=true and connectivity-test=true for testing"
7474 az aks get-credentials --resource-group ${CLUSTER} --name ${CLUSTER}
75- cd test/scale
75+ cd test/scale
7676 chmod +x label-nodes.sh
7777 ./label-nodes.sh
7878 name : " LabelNodes"
@@ -84,7 +84,7 @@ stages:
8484 pool :
8585 name : " $(BUILD_POOL_NAME_DEFAULT)"
8686 steps :
87- - task : AzureCLI@1
87+ - task : AzureCLI@2
8888 inputs :
8989 azureSubscription : $(TEST_SUB_SERVICE_CONNECTION)
9090 scriptLocation : " inlineScript"
@@ -95,14 +95,14 @@ stages:
9595 echo "collect cpu and memory usage before scaling for network policies"
9696 mkdir test1_1_netpol_cpu_and_mem_before
9797 cd test1_1_netpol_cpu_and_mem_before
98- echo "running k top node"
98+ echo "running k top node"
9999 kubectl top node >> "node_before_netpol_scale.log"
100100 echo "running k top pod"
101101 kubectl top pod -A | grep cilium >> "pod_before_netpol_scale.log"
102102 echo "Logs will be available as a build artifact"
103103 ARTIFACT_DIR=$(Build.ArtifactStagingDirectory)/test1_1_netpol_cpu_and_mem_before/
104104 echo $ARTIFACT_DIR
105- sudo rm -rf $ARTIFACT_DIR
105+ sudo rm -rf $ARTIFACT_DIR
106106 sudo mkdir $ARTIFACT_DIR
107107 cd ..
108108 sudo cp ./test1_1_netpol_cpu_and_mem_before/* $ARTIFACT_DIR
@@ -113,7 +113,7 @@ stages:
113113 echo "collect cpu and mem results after scaling"
114114 mkdir test1_2_netpol_cpu_and_mem_scale
115115 cd test1_2_netpol_cpu_and_mem_scale
116- echo "running k top node"
116+ echo "running k top node"
117117 kubectl top node >> "node_netpol_scale.log"
118118 echo "running k top pod"
119119 kubectl top pod -A | grep cilium >> "pod_netpol_scale.log"
@@ -148,7 +148,7 @@ stages:
148148 name : " $(BUILD_POOL_NAME_DEFAULT)"
149149 timeoutInMinutes : 120
150150 steps :
151- - task : AzureCLI@1
151+ - task : AzureCLI@2
152152 inputs :
153153 azureSubscription : $(TEST_SUB_SERVICE_CONNECTION)
154154 scriptLocation : " inlineScript"
@@ -163,14 +163,14 @@ stages:
163163 echo "collect cpu and mem results after connectivity tests"
164164 mkdir test1_3_netpol_cpu_and_mem_after
165165 cd test1_3_netpol_cpu_and_mem_after
166- echo "running k top node"
166+ echo "running k top node"
167167 kubectl top node >> "node_after_netpol_tests.log"
168168 echo "running k top pod"
169169 kubectl top pod -A | grep cilium >> "pod_after_netpol_tests.log"
170170 echo "Logs will be available as a build artifact"
171171 ARTIFACT_DIR=$(Build.ArtifactStagingDirectory)/test1_3_netpol_cpu_and_mem_after/
172172 echo $ARTIFACT_DIR
173- sudo rm -rf $ARTIFACT_DIR
173+ sudo rm -rf $ARTIFACT_DIR
174174 sudo mkdir $ARTIFACT_DIR
175175 cd ..
176176 sudo cp ./test1_3_netpol_cpu_and_mem_after/* $ARTIFACT_DIR
@@ -190,7 +190,7 @@ stages:
190190 pool :
191191 name : " $(BUILD_POOL_NAME_DEFAULT)"
192192 steps :
193- - task : AzureCLI@1
193+ - task : AzureCLI@2
194194 inputs :
195195 azureSubscription : $(TEST_SUB_SERVICE_CONNECTION)
196196 scriptLocation : " inlineScript"
@@ -201,14 +201,14 @@ stages:
201201 echo "collect cpu and mem results before scale for lb tests"
202202 mkdir test2_1_lb_cpu_and_mem_before
203203 cd test2_1_lb_cpu_and_mem_before
204- echo "running k top node"
204+ echo "running k top node"
205205 kubectl top node >> "node_before_lb_scale.log"
206206 echo "running k top pod"
207207 kubectl top pod -A | grep cilium >> "pod_before_lb_scale.log"
208208 echo "Logs will be available as a build artifact"
209209 ARTIFACT_DIR=$(Build.ArtifactStagingDirectory)/test2_1_lb_cpu_and_mem_before/
210210 echo $ARTIFACT_DIR
211- sudo rm -rf $ARTIFACT_DIR
211+ sudo rm -rf $ARTIFACT_DIR
212212 sudo mkdir $ARTIFACT_DIR
213213 cd ..
214214 sudo cp ./test2_1_lb_cpu_and_mem_before/* $ARTIFACT_DIR
@@ -218,7 +218,7 @@ stages:
218218 echo "collect cpu and mem results after scaling"
219219 mkdir test2_2_lb_cpu_and_mem_scale
220220 cd test2_2_lb_cpu_and_mem_scale
221- echo "running k top node"
221+ echo "running k top node"
222222 kubectl top node >> "node_lb_scale.log"
223223 echo "running k top pod"
224224 kubectl top pod -A | grep cilium >> "pod_lb_scale.log"
@@ -252,7 +252,7 @@ stages:
252252 pool :
253253 name : " $(BUILD_POOL_NAME_DEFAULT)"
254254 steps :
255- - task : AzureCLI@1
255+ - task : AzureCLI@2
256256 inputs :
257257 azureSubscription : $(TEST_SUB_SERVICE_CONNECTION)
258258 scriptLocation : " inlineScript"
@@ -274,7 +274,7 @@ stages:
274274 cd ..
275275 mkdir test2_3_lb_cpu_and_mem_after
276276 cd test2_3_lb_cpu_and_mem_after
277- echo "running k top node"
277+ echo "running k top node"
278278 kubectl top node >> "node_after_lb_tests.log"
279279 echo "running k top pod"
280280 kubectl top pod -A | grep cilium >> "pod_after_lb_tests.log"
@@ -312,7 +312,7 @@ stages:
312312 pool :
313313 name : " $(BUILD_POOL_NAME_DEFAULT)"
314314 steps :
315- - task : AzureCLI@1
315+ - task : AzureCLI@2
316316 inputs :
317317 azureSubscription : $(TEST_SUB_SERVICE_CONNECTION)
318318 scriptLocation : " inlineScript"
@@ -328,7 +328,7 @@ stages:
328328 echo "collect cpu and mem results after netperf tests"
329329 mkdir test3_netperf_cpu_and_mem
330330 cd test3_netperf_cpu_and_mem
331- echo "running k top node"
331+ echo "running k top node"
332332 kubectl top node >> "node_netperf.log"
333333 echo "running k top pod"
334334 kubectl top pod -A | grep cilium >> "pod_netperf.log"
@@ -337,8 +337,8 @@ stages:
337337 ARTIFACT_DIR2=$(Build.ArtifactStagingDirectory)/test3_netperf/
338338 echo $ARTIFACT_DIR
339339 echo $ARTIFACT_DIR2
340- sudo rm -rf $ARTIFACT_DIR
341- sudo rm -rf $ARTIFACT_DIR2
340+ sudo rm -rf $ARTIFACT_DIR
341+ sudo rm -rf $ARTIFACT_DIR2
342342 sudo mkdir $ARTIFACT_DIR
343343 sudo mkdir $ARTIFACT_DIR2
344344 cd ..
@@ -367,7 +367,7 @@ stages:
367367 pool :
368368 name : " $(BUILD_POOL_NAME_DEFAULT)"
369369 steps :
370- - task : AzureCLI@1
370+ - task : AzureCLI@2
371371 inputs :
372372 azureSubscription : $(TEST_SUB_SERVICE_CONNECTION)
373373 scriptLocation : " inlineScript"
@@ -389,7 +389,7 @@ stages:
389389 pool :
390390 name : " $(BUILD_POOL_NAME_DEFAULT)"
391391 steps :
392- - task : AzureCLI@1
392+ - task : AzureCLI@2
393393 inputs :
394394 azureSubscription : $(TEST_SUB_SERVICE_CONNECTION)
395395 scriptLocation : " inlineScript"
0 commit comments