fwdcfg

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientConfig added in v1.9.4

func GetClientConfig(cfgFilePath string) (*clientcmdapi.Config, error)

GetClientConfig build the ClientConfig and return rawConfig if cfgFilePath is set special, use it. otherwise search the KUBECONFIG environment variable and merge it. if KUBECONFIG env is blank, use the default kubeconfig in $HOME/.kube/config

func GetRestConfig

func GetRestConfig(cfgFilePath string, context string) (*restclient.Config, error)

GetRestConfig uses the kubectl config file to connect to a cluster.

Types

This section is empty.

Jump to

Keyboard shortcuts

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