From 376d603762cd729b413250d567e53ac56adaa1a9 Mon Sep 17 00:00:00 2001 From: Gavin Xin Date: Thu, 25 May 2023 16:45:45 +0800 Subject: [PATCH] Remove uninitialized taint to recover CAPV testbeds (#5035) The updated CAPV cluster will generate uninitialized taint on worker nodes. To avoid blocking the tests, we need to update related script. Signed-off-by: Shuyang Xin --- ci/jenkins/test-vmc.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/jenkins/test-vmc.sh b/ci/jenkins/test-vmc.sh index c6f109e0f56..8cb9536f004 100755 --- a/ci/jenkins/test-vmc.sh +++ b/ci/jenkins/test-vmc.sh @@ -502,6 +502,7 @@ function run_e2e { ${SCP_WITH_ANTREA_CI_KEY} $GIT_CHECKOUT_DIR/jenkins/out/kubeconfig capv@${control_plane_ip}:~/.kube/config set +e + kubectl taint nodes --selector='!node-role.kubernetes.io/control-plane' node.cluster.x-k8s.io/uninitialized- mkdir -p ${GIT_CHECKOUT_DIR}/antrea-test-logs if [[ "$COVERAGE" == true ]]; then rm -rf ${GIT_CHECKOUT_DIR}/e2e-coverage @@ -568,6 +569,10 @@ function run_conformance { ${SSH_WITH_ANTREA_CI_KEY} -n capv@${control_plane_ip} "if [ ! -d ".kube" ]; then mkdir .kube; fi" ${SCP_WITH_ANTREA_CI_KEY} $GIT_CHECKOUT_DIR/jenkins/out/kubeconfig capv@${control_plane_ip}:~/.kube/config + set +e + kubectl taint nodes --selector='!node-role.kubernetes.io/control-plane' node.cluster.x-k8s.io/uninitialized- + set -e + if [[ "$TESTCASE" == "conformance" ]]; then ${GIT_CHECKOUT_DIR}/ci/run-k8s-e2e-tests.sh --e2e-conformance --e2e-sig-network --log-mode ${MODE} --kubeconfig ${GIT_CHECKOUT_DIR}/jenkins/out/kubeconfig > ${GIT_CHECKOUT_DIR}/vmc-test.log elif [[ "$TESTCASE" == "all-features-conformance" ]]; then