Categorygithub.com/spongeprojects/kubectl-cf
modulepackage
0.0.2
Repository: https://github.com/spongeprojects/kubectl-cf.git
Documentation: pkg.go.dev

# README

kubectl-cf

Faster way to switch between kubeconfigs (not context).

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 kubeconfigs, if you want to switch between context within a single kubeconfig (or multiple kubeconfigs), you should use https://github.com/ahmetb/kubectx instead.

# Functions

BackUp backs up a file, back up file will be named like filePath-backup-n.
HomeDir returns the home directory for the current user.
No description provided by the author
ListKubeconfigCandidatesInDir lists all files in dir that matches KubeconfigFilenamePattern.
Symlink creates newname as a symbolic link to oldname, if newname not exist or is a symlink, it will be replaced directly, in other cases, it will be backed up first.

# Constants

PreviousKubeconfigFullPath is the file name which stores the previous kubeconfig file's full path.

# Variables

No description provided by the author
No description provided by the author
KubeconfigFilenamePattern defines the name pattern of kubeconfig files.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author