Documentation
¶
Index ¶
Constants ¶
View Source
const ( RecommendedConfigPathEnvVar = "KUBECONFIG" RecommendedHomeDir = ".kube" RecommendedKubeConfigFileName = "config" )
Variables ¶
View Source
var ( RecommendedConfigDir = filepath.Join(homedir.HomeDir(), RecommendedHomeDir) RecommendedKubeConfigFile = filepath.Join(RecommendedConfigDir, RecommendedKubeConfigFileName) )
Functions ¶
func GetKubeConfig ¶
func GetKubeConfig() string
1. If $KUBECONFIG environment variable is set, then it is used it. 2. Otherwise, ${HOME}/.kube/config is used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.