Closed
Description
It would be nice if we could select current-context to empty, so unset the current-context, as for safety reasons, that would be similar (in effects) to logging off. This way, you can prevent commands being executed agains a cluster if any of the automation you're running does accidentally try to do something.
My workflow is similar to:
- going to work on something (login), so do
kubectx my-context
- do my work
- finished working on a cluster (logout), so do
kubectx -off
(OR SIMILAR)
Using kubectx -d <CTX>
does delete the context, but not unsets the current-context, so still has a value to a non existing context. What I'm requesting is the opposite, retain the context, but unset the value from current-context.
Metadata
Metadata
Assignees
Labels
No labels