cka-sim/teardown.sh
2026-09-06 19:06:10 -06:00

10 lines
366 B
Bash
Executable File

#!/usr/bin/env bash
# Deletes the kind cluster and all local exam state.
set -euo pipefail
cd "$(dirname "$0")"
RT="${CONTAINER_RUNTIME:-$(cat .state/runtime 2>/dev/null || echo podman)}"
[ "$RT" = podman ] && export KIND_EXPERIMENTAL_PROVIDER=podman
kind delete cluster --name cka-sim || true
rm -rf .state workspace
echo "cka-sim cluster and local state removed."