k9s/internal/view
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
..
cmd fix: update SuggestSubCommand to pass command context for suggestions (#3516) 2025-08-20 08:46:50 -06:00
testdata
actions.go
actions_test.go
alias.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
alias_test.go
app.go Rel v0.50.7 (#3436) 2025-07-05 10:36:36 -06:00
app_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
benchmark.go
browser.go
cluster_info.go
cm.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
cm_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
command.go
command_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
container.go
container_test.go
context.go
context_test.go
cow.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
crd.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
cronjob.go
details.go
dir.go Rel v0.50.3 (#3276) 2025-04-13 18:25:04 -06:00
dir_int_test.go
dir_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
dp.go show replicasets from deployment view (#3308) 2025-05-01 05:28:13 -06:00
dp_test.go show replicasets from deployment view (#3308) 2025-05-01 05:28:13 -06:00
drain_dialog.go
ds.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
ds_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
env.go Rel v0.40.11 (#3239) 2025-03-30 11:42:45 -06:00
env_test.go Clean up items... (#2303) 2023-11-19 08:43:39 -07:00
event.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
exec.go feat: add hostPathVolume (docker) (#3277) 2025-04-19 09:27:05 -06:00
group.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
helm_chart.go
helm_history.go
help.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
help_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
helpers.go
helpers_test.go
image_extender.go
img_scan.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
job.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
live_view.go Rel v0.50.7 (#3436) 2025-07-05 10:36:36 -06:00
live_view_test.go
log.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
log_indicator.go
log_indicator_test.go
log_int_test.go
log_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
logger.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
logs_extender.go
node.go
ns.go Rel v0.50.8 (#3457) 2025-07-15 08:38:28 -06:00
ns_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
owner_extender.go
page_stack.go
pf.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
pf_dialog.go Rel v0.50.3 (#3276) 2025-04-13 18:25:04 -06:00
pf_dialog_test.go
pf_extender.go Rel v0.50.7 (#3436) 2025-07-05 10:36:36 -06:00
pf_extender_test.go
pf_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
picker.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
pod.go Rel v0.50.7 (#3436) 2025-07-05 10:36:36 -06:00
pod_int_test.go
pod_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
policy.go
priorityclass.go
priorityclass_test.go
pulse.go Rel v0.50.5 (#3332) 2025-05-07 23:22:01 -06:00
pvc.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
pvc_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
rbac.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
rbac_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
reference.go
reference_test.go
registrar.go
restart_extender.go
rs.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
sa.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
scale_extender.go
screen_dump.go
screen_dump_test.go
secret.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
secret_test.go
sts.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
sts_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
svc.go Rel v0.50.4 (#3293) 2025-04-19 12:07:10 -06:00
svc_test.go Rel v0.50.1 - HotFix ;( (#3263) 2025-04-09 23:58:37 -06:00
table.go Feature/refresh rate (#3517) 2025-08-25 12:01:03 -06:00
table_helper.go
table_int_test.go
types.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
user.go
value_extender.go
vul_extender.go
workload.go
xray.go Feature/refresh rate (#3517) 2025-08-25 12:01:03 -06:00
yaml.go Rel v0.50.0 (#3254) 2025-04-08 23:40:34 -06:00
yaml_test.go fix: Avoid false positive matches in enableRegion (#3093) (#3140) 2025-02-23 18:12:18 -07:00