Merge pull request #116386 from kinvolk/rata/local-up-cleanup

hack/local-up-cluster.sh: Cleaup on SIGINT
This commit is contained in:
Kubernetes Prow Robot 2023-03-08 18:46:07 -08:00 committed by GitHub
commit bbe0eb7595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1151,6 +1151,7 @@ echo "Using GO_OUT ${GO_OUT}"
export KUBELET_CIDFILE=${TMP_DIR}/kubelet.cid
if [[ "${ENABLE_DAEMON}" = false ]]; then
trap cleanup EXIT
trap cleanup INT
fi
echo "Starting services now!"