Skip to content

Commit

Permalink
Remove uninitialized taint to recover CAPV testbeds (antrea-io#5035)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
XinShuYang authored May 25, 2023
1 parent 76c2f0e commit 376d603
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/jenkins/test-vmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 376d603

Please sign in to comment.