Files
Oliver BählerandGitHub 99e05220ab feat: implement performance optimizations (#2045)
* feat: implement performance optimizations

---------

Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
2026-07-21 16:27:29 +02:00

24 lines
585 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
CLUSTER_NAME=${CLUSTER_NAME:-capsule-stress}
PREFIX=${PREFIX:-stress}
if [[ "${1:-}" == "--workload-only" ]]; then
kubectl delete namespaces \
--selector "projectcapsule.dev/stress-run=${PREFIX}" \
--ignore-not-found \
--wait
kubectl delete tenants \
--selector "projectcapsule.dev/stress-run=${PREFIX}" \
--ignore-not-found \
--wait
exit 0
fi
kwokctl --config "${ROOT_DIR}/e2e/stress/kwok.yaml" delete cluster \
--name "${CLUSTER_NAME}" \
--force