client

package
v4.0.16+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL