Kubectl version switcher
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Casks
Formula 1.0.1 Oct 9, 2018
chk
etc
CHANGELOG.md
LICENSE
README.md We support 1.8 Oct 9, 2018
generate_casks

README.md

chk - Kubectl version switcher

This repository includes Homebrew Casks to install multiple Kubectl versions (since 1.8) at the same time, and a chk helper to specify which one to use. chk also installs the specified version automatically if needed.

Usage

Tap this repository:

brew tap Vlatombe/kubectls

Install the chk helper:

brew install chk

Add the following to the ~/.bashrc or ~/.zshrc file:

# Source chk
if [[ -f /usr/local/share/chk/chk.sh ]]; then
    source "/usr/local/share/chk/chk.sh"
fi

If you are using fish add the following into ~/.config/fish/config.fish:

# Source chk
if test -f /usr/local/share/chk/chk.fish
    source /usr/local/share/chk/chk.fish
end

Then select the wanted Kubectl version to use with chk.

chk 1.11.3

You can also just install a specific Kubectl version (but you'll need to use chk or adjust PATH yourself to use it):

brew cask install kubernetes-cli-1.11.3

Credits

This project is a port of chtf for kubectl.