e212e601a9
* Regenerate lockfile for lodash+vite overrides Co-Authored-By: Paperclip <noreply@paperclip.ing> * fix: add markdownlint config to resolve CI failures - Add .markdownlint-cli2.jsonc with 18 rule disables appropriate for plugin docs - Add .markdownlintignore to skip generated API reference docs - Fix remaining errors with --fix Co-Authored-By: Paperclip <noreply@paperclip.ing> * Reference shared infra RBAC in deployment scripts PRI-750: update plugin repos to reference shared infra RBAC (PRI-695 follow-up) - scripts/deploy-e2e-headlamp.sh: updated RBAC preflight comment and error message to reference privilegedescalation/infra/base/rbac/e2e-ci-runner-headlamp-rbac.yaml - scripts/teardown-e2e-headlamp.sh: added RBAC reference comment Infra RBAC is the source of truth managed by Flux GitOps. No E2E workflow exists yet for this plugin. --------- Co-authored-by: Chris Farhood <chris@farhood.org> Co-authored-by: Paperclip <noreply@paperclip.ing>
42 lines
1.5 KiB
Bash
Executable File
42 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# teardown-e2e-headlamp.sh
|
|
#
|
|
# Tears down the dedicated E2E Headlamp instance deployed by deploy-e2e-headlamp.sh.
|
|
#
|
|
# RBAC is managed via Flux from privilegedescalation/infra/base/rbac/e2e-ci-runner-headlamp-rbac.yaml.
|
|
# The infra repo is the source of truth — do not apply this file directly.
|
|
#
|
|
# Environment:
|
|
# E2E_NAMESPACE — namespace to clean up (default: privilegedescalation-dev)
|
|
# E2E_RELEASE — release/resource name prefix (default: headlamp-e2e)
|
|
set -euo pipefail
|
|
|
|
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
|
E2E_NAMESPACE="${E2E_NAMESPACE:-privilegedescalation-dev}"
|
|
E2E_RELEASE="${E2E_RELEASE:-headlamp-e2e}"
|
|
|
|
echo "=== E2E Headlamp Teardown ==="
|
|
echo " Namespace: $E2E_NAMESPACE"
|
|
echo " Release: $E2E_RELEASE"
|
|
|
|
echo "Removing Headlamp Deployment, Service, and ServiceAccount..."
|
|
kubectl delete deployment "${E2E_RELEASE}" -n "$E2E_NAMESPACE" --ignore-not-found
|
|
kubectl delete service "${E2E_RELEASE}" -n "$E2E_NAMESPACE" --ignore-not-found
|
|
kubectl delete serviceaccount "${E2E_RELEASE}" -n "$E2E_NAMESPACE" --ignore-not-found
|
|
|
|
echo "Cleaning up ConfigMap..."
|
|
kubectl delete configmap headlamp-sealed-secrets-plugin -n "$E2E_NAMESPACE" --ignore-not-found
|
|
|
|
echo "Cleaning up test service account..."
|
|
kubectl delete serviceaccount headlamp-e2e-test -n "$E2E_NAMESPACE" --ignore-not-found
|
|
|
|
# Clean up .env.e2e if present
|
|
if [ -f "$REPO_ROOT/.env.e2e" ]; then
|
|
rm "$REPO_ROOT/.env.e2e"
|
|
echo "Removed .env.e2e"
|
|
fi
|
|
|
|
echo ""
|
|
echo "E2E teardown complete."
|