Documentation
¶
Overview ¶
Package kubectx picks the kubeconfig context an environment means.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
Fetch downloads a kubeconfig: from a URL (token as bearer when set), from a file, or, with no source, generated by the Rancher that server points at (token: a Rancher API key).
func IsRancher ¶
IsRancher is whether server is a Rancher cluster proxy, whose kubeconfig Fetch can generate.
func Merge ¶
Merge adds raw to the user's kubeconfig (the first file of $KUBECONFIG, else ~/.kube/config): its entries replace same-named ones, the current context stays, and the old file is kept beside it as .rig-backup. It returns the file written and the contexts raw brought.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.