Skip to content

surfinggo/kubectl-cf

Repository files navigation

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;