Skip to content

feat(devbox): harden admin cleanup script namespace scope - #282

Merged
zjy365 merged 1 commit into
mainfrom
feat/devbox-admin-cleanup
Aug 20, 2026
Merged

feat(devbox): harden admin cleanup script namespace scope#282
zjy365 merged 1 commit into
mainfrom
feat/devbox-admin-cleanup

Conversation

@zjy365

@zjy365 zjy365 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Rebases the previously merged devbox-admin-cleanup work (#262) onto current main and hardens the script's scope:

  • --kubeconfig is now required; removed the fallback chain (KUBECONFIG env, in-cluster, default config).
  • Namespace handling switched from a blocklist to an allowlist: only namespaces with the ns- prefix are scanned (--all-namespaces / --namespace both validated).
  • Removed the now-unused EXCLUDED_NAMESPACES set.
  • Added apps/ui/scripts/devbox-admin-cleanup.test.mjs covering namespace validation, required kubeconfig, all-namespaces filtering, and Shutdown eligibility.

Validation

  • node --check apps/ui/scripts/devbox-admin-cleanup.mjs
  • bun test apps/ui/scripts/devbox-admin-cleanup.test.mjs — 4 pass, 0 fail
  • bunx ultracite check on both files — clean
  • Branch is based on the latest origin/main; contains a single new commit (d5c95af6)

@zjy365
zjy365 merged commit 7b8301d into main Aug 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant