Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultKubeConfigFileName ¶
func GetDefaultKubeConfigFileName() string
GetDefaultKubeConfigFileName gets the default file name of the kubeconfig
func UpdateKubeConfig ¶
func UpdateKubeConfig(kubeconfig *KubeConfig, user UserData, updateContext bool, serverName string)
UpdateKubeConfig updates the local kubeconfig (~/.kube/config) with the given user.
Types ¶
type KubeConfig ¶
type KubeConfig struct { // FileName is the file name of the kubeconfig file FileName string // contains filtered or unexported fields }
KubeConfig holds a kubeconfig and its file name
func GetKubeConfig ¶
func GetKubeConfig(argument string) (*KubeConfig, error)
GetKubeConfig loads a kubeconfig from the given file or a default file
type Server ¶
Server indicates a specific configured Kubernetes context.
func GetServers ¶
func GetServers(kubeconfig *KubeConfig) []Server
GetServers gets a list of all configured contexts.
Click to show internal directories.
Click to hide internal directories.