Skip to content

Commit

Permalink
Updating the kind builder script to perform correct kind cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: KMAnju-2021 <km074btcse18@igdtuw.ac.in>
  • Loading branch information
KMAnju-2021 committed Nov 21, 2023
1 parent 22d70be commit e321ded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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
1 change: 1 addition & 0 deletions ci/kind/kind-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ function clean_kind {
if [[ $diff -gt $timeout ]]; then
echo "=== kind ${kind_cluster_name} present from more than $UNTIL_TIME_IN_MINS minutes ==="
kind delete cluster --name $kind_cluster_name
delete_networks
fi
done
}
Expand Down

0 comments on commit e321ded

Please sign in to comment.