k9s/internal
Alex Cantu 40cf6a151f
feat: Add context deletion functionality (#3489)
* Add delete functionality for Kubernetes contexts

This adds the ability to delete Kubernetes contexts using the 'd' key in the context view. The implementation includes:
- New delete command bound to 'd' key
- Confirmation dialog before deletion
- Error handling and UI refresh after deletion

* Refactor context delete dialog to use standard dialog component

- Replace custom delete confirmation with dialog.ShowConfirm
- Add read-only mode checks for rename and delete commands
- Change delete keybinding from 'd' to 'Ctrl+d'
- Remove unused deletePage constant and related functions
- Simplify delete callback logic

* Refactor context view key bindings to separate dangerous operations

* Fix linting error
2025-09-01 16:38:26 -06:00
..
client Rel v0.50.8 (#3457) 2025-07-15 08:38:28 -06:00
color Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
config Feature/refresh rate (#3517) 2025-08-25 12:01:03 -06:00
dao Rel v0.50.8 (#3457) 2025-07-15 08:38:28 -06:00
health Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
model Rel v0.50.8 (#3457) 2025-07-15 08:38:28 -06:00
model1 Rel v0.50.6 (#3338) 2025-05-11 23:16:37 -06:00
perf Rel v0.50.3 (#3276) 2025-04-13 18:25:04 -06:00
port chore: make function comment match function name (#3408) 2025-07-16 08:17:10 -06:00
render fix: Color PV row according to its STATUS column (#3513) 2025-08-20 09:06:05 -06:00
slogs Feature/refresh rate (#3517) 2025-08-25 12:01:03 -06:00
tchart Rel v0.50.5 (#3332) 2025-05-07 23:22:01 -06:00
ui allow skin to be selected via K9S_SKIN env var (#3356) 2025-07-14 22:57:12 -06:00
view feat: Add context deletion functionality (#3489) 2025-09-01 16:38:26 -06:00
vul Rel v0.50.9 (#3461) 2025-07-15 23:02:41 -06:00
watch Rel v0.50.3 (#3276) 2025-04-13 18:25:04 -06:00
xray Rel v0.50.7 (#3436) 2025-07-05 10:36:36 -06:00
helpers.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
helpers_test.go K9s/release v0.32.0 (#2577) 2024-03-02 10:18:47 -07:00
keys.go K9s Release v0.29.0 (#2326) 2023-12-06 23:12:39 -07:00
pool.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
pool_test.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00