@@ -429,12 +429,10 @@ function deliver_antrea_linux {
429
429
DOCKER_REGISTRY=" ${DOCKER_REGISTRY} " ./hack/build-antrea-linux-all.sh --pull
430
430
docker save -o antrea-ubuntu.tar antrea/antrea-agent-ubuntu:latest antrea/antrea-controller-ubuntu:latest
431
431
echo " ===== Pull necessary images on Control-Plane node ====="
432
- harbor_images=(" agnhost:2.13" " nginx:1.15-alpine" )
433
- antrea_images=(" e2eteam/agnhost:2.13" " docker.io/library/nginx:1.15-alpine" )
434
- common_images=(" registry.k8s.io/e2e-test-images/agnhost:2.29" )
435
- k8s_images=(" registry.k8s.io/e2e-test-images/agnhost:2.45" " registry.k8s.io/e2e-test-images/jessie-dnsutils:1.5" " registry.k8s.io/e2e-test-images/nginx:1.14-2" )
436
- conformance_images=(" k8sprow.azurecr.io/kubernetes-e2e-test-images/agnhost:2.45" " k8sprow.azurecr.io/kubernetes-e2e-test-images/jessie-dnsutils:1.5" " k8sprow.azurecr.io/kubernetes-e2e-test-images/nginx:1.14-2" )
437
- e2e_images=(" toolbox:1.3-0" " nginx:1.21.6-alpine" )
432
+ common_images=(" registry.k8s.io/e2e-test-images/agnhost:2.40" )
433
+ k8s_images=(" registry.k8s.io/e2e-test-images/agnhost:2.52" " registry.k8s.io/e2e-test-images/jessie-dnsutils:1.5" " registry.k8s.io/e2e-test-images/nginx:1.14-2" )
434
+ conformance_images=(" k8sprow.azurecr.io/kubernetes-e2e-test-images/agnhost:2.52" " k8sprow.azurecr.io/kubernetes-e2e-test-images/jessie-dnsutils:1.5" " k8sprow.azurecr.io/kubernetes-e2e-test-images/nginx:1.14-2" )
435
+ e2e_images=(" toolbox:1.4-0" " nginx:1.21.6-alpine" )
438
436
439
437
echo " ===== Deliver Antrea YAML to Controller nodes ====="
440
438
IP=$( kubectl get nodes -o wide --no-headers=true | awk -v role=" $CONTROL_PLANE_NODE_ROLE " ' $3 ~ role {print $6}' )
@@ -456,9 +454,6 @@ function deliver_antrea_linux {
456
454
rsync -avr --progress --inplace -e " ssh -o StrictHostKeyChecking=no" antrea-ubuntu.tar jenkins@${IP} :${WORKDIR} /antrea-ubuntu.tar
457
455
ssh -o StrictHostKeyChecking=no -n jenkins@${IP} " ${CLEAN_STALE_IMAGES_CONTAINERD} ; ${PRINT_CONTAINERD_STATUS} ; ctr -n=k8s.io images import ${WORKDIR} /antrea-ubuntu.tar" || true
458
456
459
- for i in " ${! harbor_images[@]} " ; do
460
- ssh -o StrictHostKeyChecking=no -n jenkins@${IP} " ctr -n=k8s.io images pull --user ${DOCKER_USERNAME} :${DOCKER_PASSWORD} ${DOCKER_REGISTRY} /antrea/${harbor_images[i]} && ctr -n=k8s.io images tag ${DOCKER_REGISTRY} /antrea/${harbor_images[i]} ${antrea_images[i]} " || true
461
- done
462
457
# Pull necessary images in advance to avoid transient error
463
458
for image in " ${common_images[@]} " ; do
464
459
ssh -o StrictHostKeyChecking=no -n jenkins@${IP} " ctr -n=k8s.io images pull --user ${DOCKER_USERNAME} :${DOCKER_PASSWORD} ${image} " || true
@@ -488,22 +483,15 @@ function deliver_antrea_windows {
488
483
sed -i ' s/if (!(Test-Path $AntreaAgentConfigPath))/if ($true)/' hack/windows/Helper.psm1
489
484
kubectl get nodes -o wide --no-headers=true | awk -v role=" $CONTROL_PLANE_NODE_ROLE " ' $3 !~ role && $1 ~ /win/ {print $1}' | while read WORKER_NAME; do
490
485
revert_snapshot_windows ${WORKER_NAME}
491
- # Some tests need us.gcr.io/k8s-artifacts-prod/e2e-test-images/agnhost:2.13 image but it is not for windows/amd64 10.0.17763
492
- # Use e2eteam/agnhost:2.13 instead
493
- harbor_images=(" agnhost:2.13" " agnhost:2.13" " agnhost:2.29" " e2eteam-jessie-dnsutils:1.0" " e2eteam-pause:3.2" )
494
- antrea_images=(" e2eteam/agnhost:2.13" " us.gcr.io/k8s-artifacts-prod/e2e-test-images/agnhost:2.13" " registry.k8s.io/e2e-test-images/agnhost:2.29" " e2eteam/jessie-dnsutils:1.0" " e2eteam/pause:3.2" )
495
- k8s_images=(" registry.k8s.io/e2e-test-images/agnhost:2.45" " registry.k8s.io/e2e-test-images/jessie-dnsutils:1.5" " registry.k8s.io/e2e-test-images/nginx:1.14-2" " registry.k8s.io/pause:3.8" )
496
- conformance_images=(" k8sprow.azurecr.io/kubernetes-e2e-test-images/agnhost:2.45" " k8sprow.azurecr.io/kubernetes-e2e-test-images/jessie-dnsutils:1.5" " k8sprow.azurecr.io/kubernetes-e2e-test-images/nginx:1.14-2" " k8sprow.azurecr.io/kubernetes-e2e-test-images/pause:3.8" )
497
- e2e_images=(" toolbox:1.3-0" )
486
+ k8s_images=(" registry.k8s.io/e2e-test-images/agnhost:2.52" " registry.k8s.io/e2e-test-images/jessie-dnsutils:1.5" " registry.k8s.io/e2e-test-images/nginx:1.14-2" " registry.k8s.io/pause:3.10" )
487
+ conformance_images=(" k8sprow.azurecr.io/kubernetes-e2e-test-images/agnhost:2.52" " k8sprow.azurecr.io/kubernetes-e2e-test-images/jessie-dnsutils:1.5" " k8sprow.azurecr.io/kubernetes-e2e-test-images/nginx:1.14-2" " registry.k8s.io/e2e-test-images/pause:3.10" )
488
+ e2e_images=(" ${DOCKER_REGISTRY} /antrea/toolbox:1.4-0" " registry.k8s.io/e2e-test-images/agnhost:2.40" )
498
489
# Pull necessary images in advance to avoid transient error
499
- for i in " ${! harbor_images[@]} " ; do
500
- ssh -o StrictHostKeyChecking=no -n Administrator@${IP} " ctr -n k8s.io images pull --user ${DOCKER_USERNAME} :${DOCKER_PASSWORD} ${DOCKER_REGISTRY} /antrea/${harbor_images[i]} && ctr -n k8s.io images tag ${DOCKER_REGISTRY} /antrea/${harbor_images[i]} ${antrea_images[i]} " || true
501
- done
502
490
for i in " ${! k8s_images[@]} " ; do
503
491
ssh -o StrictHostKeyChecking=no -n Administrator@${IP} " ctr -n k8s.io images pull --user ${DOCKER_USERNAME} :${DOCKER_PASSWORD} ${k8s_images[i]} && ctr -n k8s.io images tag ${k8s_images[i]} ${conformance_images[i]} " || true
504
492
done
505
493
for image in " ${e2e_images[@]} " ; do
506
- ssh -o StrictHostKeyChecking=no -n Administrator@${IP} " ctr -n k8s.io images pull --user ${DOCKER_USERNAME} :${DOCKER_PASSWORD} ${DOCKER_REGISTRY} /antrea/ ${ image}" || true
494
+ ssh -o StrictHostKeyChecking=no -n Administrator@${IP} " ctr -n k8s.io images pull --user ${DOCKER_USERNAME} :${DOCKER_PASSWORD} ${image} " || true
507
495
done
508
496
509
497
for i in ` seq 2` ; do
0 commit comments