A kubectl
plugin to quickly switch kcp workspaces interactively.
To run this kubectl
plugin you need:
This installation method requires krew installed.
Add the krew index and synchronize the local copy of it:
$ kubectl krew index add embik https://github.com/embik/krew-index.git
$ kubectl krew update
kubectl-switch-ws can now be installed with the following command:
$ kubectl krew install embik/switch-ws
Copy kubectl-switch_ws into our $PATH
(e.g. ~/bin
or ~/.local/bin
, depending on your system setup).
Run kubectl switch-ws
to start the interactive workspace switcher. Navigate the list of child workspaces in the current workspace and press enter to switch to a specific workspace.
Use the pseudo element ..
to go up one level to the parent workspace.
Use [exit]
or press ESC when you have reached the workspace you intended to navigate to.