Skip to content

feat(dashboard): expose --prune-dangling cleanup target#446

Open
aviadshiber wants to merge 3 commits into
mainfrom
fix/424-dashboard-prune-dangling
Open

feat(dashboard): expose --prune-dangling cleanup target#446
aviadshiber wants to merge 3 commits into
mainfrom
fix/424-dashboard-prune-dangling

Conversation

@aviadshiber

Copy link
Copy Markdown
Owner

Summary

  • Follow-up of fix(cleanup): guard clean_images against in-use/service images and GC dangling layers proactively #423: kapsis-cleanup.sh added a standalone --prune-dangling flag (cheap, in-use-safe dangling-layer GC for cron/housekeepers), but the dashboard's cleanup control surface didn't expose it yet, per CLAUDE.md's Dashboard Sync Rule.
  • Add a prune-dangling entry to TARGET_TO_FLAG in dashboard/server/src/control/cleanup.ts mapping to --prune-dangling.
  • Add the new target to the Maintenance UI's cleanup target list with a short description.
  • Extend dashboard/server/tests/cleanup.test.ts to cover the new target/flag mapping.

Fixes #424

Test plan

  • ./tests/run-all-tests.sh --quick (shell test suite, unaffected by this TS-only change)
  • bun test dashboard/server/tests/cleanup.test.ts (bun not available in this environment; new test follows the exact pattern of existing target tests)

aviadsTaboola and others added 3 commits July 11, 2026 20:10
kapsis-cleanup.sh gained a standalone --prune-dangling flag for cheap,
in-use-safe dangling-layer GC (cron/housekeeper use case), but the
dashboard's cleanup control surface never learned about it. Add a
"prune-dangling" entry to TARGET_TO_FLAG, surface it in the
Maintenance UI's target list, and extend the cleanup control tests to
cover the new mapping.

Fixes #424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dashboard-sync: expose --prune-dangling cleanup target in dashboard control surface

2 participants