talos
talos copied to clipboard
add context delete option
Feature Request
Especially since adding contexts can be automated, we should add a context remove CLI option, as well.
talosctl context remove XXXX
Ideally, this should allow glob patterns, too: talosctl context remove talos-default-*.
Description
Love this Idea
It would be nice, if this can delete the kubernetes context too
There's already the talosctl config add <myctx> command to add new contexts. It would make much more sense to plan the new sub-command as talosctl config remove <myctx>.
@murtaza-u are you going to open pull request?
@DmitriyMV Yeah...shortly.
Just wanted to say, that we probably want confirmation dialogue for each match individually.
Yeah that actually makes sense. The way I have it setup is that there's only one confirmation dialogue for all the matches. Any suggestion on how we should go about designing this? May be a flag like --step which steps over each match one by one.
noconfirm should be enough when you want to delete every match without confirmations. For completeness there could probably be a dry mode which will basically show what will be deleted.
Closed in #6671