kx
is a utility to switch interactively between kubernetes contexts without any external dependencies and bash witchcraft. Written in Rust ๐ฆ
You can directly download the kx executable.
cargo install kx
Clone the repo and run:
cargo install --path .
Alternatively, run:
cargo build --release
then put the resulting target/release/kx
executable on your PATH.
kx : list the contexts
kx <NAME> : switch to context <NAME>
kx -c, --current : show the current context name
kx -u, --unset : unset the current context