mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-10-14 11:21:07 +02:00
22 lines
547 B
Bash
Executable File
22 lines
547 B
Bash
Executable File
#!/usr/bin/env sh
|
|
# vim: noai:ts=2:sw=2:set expandtab
|
|
set -e
|
|
|
|
HACK_DIR="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd -P)"
|
|
export HACK_DIR
|
|
|
|
# shellcheck source=vagrant-common.sh
|
|
. "${HACK_DIR}/vagrant-common.sh"
|
|
|
|
for i in "${BK_CLONE_DIR}/hack/single-node" "${BK_CLONE_DIR}/hack/multi-node"; do
|
|
echo "INFO: Running vagrant destroy -f in ${i}"
|
|
cd "${i}"
|
|
vagrant destroy -f
|
|
|
|
echo "INFO: Removing cluster assets in ${i}"
|
|
rm -rf "${i}/cluster"
|
|
done
|
|
|
|
echo "INFO: Removing symbolic link to Bootkube hack directory"
|
|
rm -rf "${BK_SHORTCUT_DIR}"
|