Skip to content

Commit

Permalink
Improve Kind cleanup in CI (#5738)
Browse files Browse the repository at this point in the history
* Make sure that Antrea docker networks are deleted when garbage collecting clusters
* Modify the Kind builder script for Jenkins CI to use `kind-setup.sh destroy`

Signed-off-by: KMAnju-2021 <km074btcse18@igdtuw.ac.in>
  • Loading branch information
KMAnju-2021 authored Nov 28, 2023
1 parent 54e4f85 commit b1fa272
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/jenkins/jobs/macros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
./ci/jenkins/test.sh --testcase '{conformance_type}' --registry ${{DOCKER_REGISTRY}} --kubeconfig ${{PWD}}/.kube/config --testbed-type "kind" --kind-cluster-name "${{JOB_NAME}}-${{BUILD_NUMBER}}"
return_code=$?
set -ex
kind delete cluster --name "${{JOB_NAME}}-${{BUILD_NUMBER}}"
./ci/kind/kind-setup.sh destroy "${{JOB_NAME}}-${{BUILD_NUMBER}}"
exit $return_code
- builder:
Expand Down
2 changes: 1 addition & 1 deletion ci/kind/kind-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ function destroy {
clean_kind
else
kind delete cluster --name $CLUSTER_NAME
delete_networks
fi
delete_networks
}

function printUnixTimestamp {
Expand Down

0 comments on commit b1fa272

Please sign in to comment.