zxbyoyoyo / kubectl-cf

Faster way to switch between kubeconfig files.

Home Page:http://kubectl-cf.spongeprojects.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kubectl-cf

Go Report Card License Releases

Faster way to switch between kubeconfig files (not contexts).

demo.gif

Usage of kubectl-cf:

  cf           Select kubeconfig interactively
  cf [config]  Select kubeconfig directly
  cf -         Switch to the previous kubeconfig

This tool is designed to switch between kubeconfig files, if you want to switch between contexts within a single kubeconfig (or multiple kubeconfig files), you should use https://github.com/ahmetb/kubectx instead.

Installation

Install Manually

First, download tar file from the release page.

After downloading the tar file, extract it, then put kubectl-cf in your PATH. It can be called directly by typing kubectl-cf, or as a kubectl plugin kubectl cf, because it has the prefix kubectl-.

You can also rename it to any name you want, or create a symlink to it, with a shorter name, like cf.

Translations

TODO (PR are welcomed)

  • Auto completion;
  • krew integration;
  • Tests;

About

Faster way to switch between kubeconfig files.

http://kubectl-cf.spongeprojects.com

License:Apache License 2.0


Languages

Language:Go 100.0%