mirror of
https://github.com/ahmetb/kubectx.git
synced 2026-03-16 10:52:15 +00:00
Spawns an isolated sub-shell with a minimal kubeconfig containing only the specified context. Inside the shell, all operations (switch, rename, delete, unset, list, current, and interactive modes) are blocked via the KUBECTX_ISOLATED_SHELL env var. Only help and version remain allowed. Nested scoped shells are also prevented. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>