Skip to content

feat: allow deleting a namespace - #8

Merged
bartbeecoders merged 1 commit into
mainfrom
feat/delete-namespace
Jun 15, 2026
Merged

feat: allow deleting a namespace#8
bartbeecoders merged 1 commit into
mainfrom
feat/delete-namespace

Conversation

@bartbeecoders

Copy link
Copy Markdown
Owner

Closes #4.

What

Namespaces can now be deleted from KubeFront (previously deliberately blocked).

  • kube-core::LocalKube::delete_resource handles the namespaces kind as a cluster-scoped delete. Nodes remain non-deletable.
  • The frontend adds namespaces to DELETABLE_KINDS, so the 🗑 action shows up in the namespaces list and detail panel. Works in both Direct and Remote modes (shared kube-core path).

Safety

Deleting a namespace cascades to every resource inside it, so it gets an extra guard: ConfirmDialog now supports an optional type-to-confirm field. For namespaces the dialog shows a stronger warning and the Delete button stays disabled until you type the namespace name exactly.

Test

  • npm run build
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test -p kubefront-core ✓ (6 passed)
  • Manual: Namespaces view → Delete → must type the namespace name to enable confirm.

🤖 Generated with Claude Code

Closes #4. Namespaces are now deletable end to end:

- kube-core `delete_resource` handles the `namespaces` kind as a
  cluster-scoped delete (nodes stay excluded).
- The frontend adds `namespaces` to DELETABLE_KINDS so the row/detail
  delete action appears.
- Because deleting a namespace cascades to everything inside it,
  ConfirmDialog gains an optional type-to-confirm gate; namespace
  deletion requires typing the namespace name and shows a stronger
  warning before the button enables.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bartbeecoders
bartbeecoders merged commit b7c173f into main Jun 15, 2026
3 checks passed
@bartbeecoders
bartbeecoders deleted the feat/delete-namespace branch June 15, 2026 17:16
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.

possbility to delete namespace

1 participant