Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.31 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.31 KB

kubectl-switch-ws

A kubectl plugin to quickly switch kcp workspaces interactively.

kubectl-switch-ws demo

Installation

Prequisites

To run this kubectl plugin you need:

Krew

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

Manual

Copy kubectl-switch_ws into our $PATH (e.g. ~/bin or ~/.local/bin, depending on your system setup).

Usage

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.