Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadKubeConfig ¶
func LoadKubeConfig() (*clientcmdapi.Config, error)
LoadKubeconfig tries to read a kubeconfig file and if it can't, returns an error. One exception, missing files result in empty configs, not an error.
func RemoveKubeconifg ¶ added in v3.1.0
func RemoveKubeconifg(tc *client.TeleportClient, clusterName string) error
RemoveKubeconifg removes Teleport configuration from kubeconfig.
func SaveKubeConfig ¶
func SaveKubeConfig(config clientcmdapi.Config) error
SaveKubeConfig saves updated config to location specified by environment variable or default location
func UpdateKubeconfig ¶
func UpdateKubeconfig(tc *client.TeleportClient) error
UpdateKubeconfig adds Teleport configuration to kubeconfig.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.