Skip to content
/ kver Public

Switch between kubectl versions quickly and automatically based on context.

License

Notifications You must be signed in to change notification settings

tkjef/kver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

kver

Switch between kubectl versions by specifying version or
automatically based on context.
Currently for mac only.

Meant to replace your alias k='kubectl'.
If you have this alias set, you'll need to comment out or remove.

kver will set the 'k' command to be soft-linked to the kubectl version to be used.
They are stored in your ~/.kver directory.

kver Installation:

unalias k
mkdir ~/.kver
echo 'export PATH="~/.kver:$PATH"' >> ~/.bashrc
source ~/.bashrc
curl https://raw.githubusercontent.com/tkjef/kver/master/kver -o ~/.kver/kver
chmod +x ~/.kver/kver

Usage:

$ kver <version>

EXAMPLES:
    kver 1.22.9
    kver - # switch to previous version

Author

Created & maintained by tkjef (yo@tkjef.com).

License

MIT License, (see LICENSE)

Project Roadmap

Version 0.2.0
-add optional - flag for switching to previous kubectl version
-more error checking

Version 0.3.0
-setup brew install

About

Switch between kubectl versions quickly and automatically based on context.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages