[ci][kuberay] Always cleanup KinD cluster (#27073)

When cleaning up after the k8s operator tests, we should always delete the k8s cluster even if something went wrong (in fact, it's not clear we even need to clean up the resources within the cluster. 

Signed-off-by: Alex Wu <itswu.alex@gmail.com>
This commit is contained in:
Alex Wu 2022-07-26 21:46:19 -07:00 committed by GitHub
parent 13d185cd81
commit 837ef777a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -426,7 +426,7 @@
- |
cleanup() {
if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi
python python/ray/tests/kuberay/setup/teardown_kuberay.py
python python/ray/tests/kuberay/setup/teardown_kuberay.py || true
kind delete cluster
}
trap cleanup EXIT