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 ¶
GetKubeConfig gets kubeConfig in the following order: 1. If $KUBECONFIG environment variable is set, then it is used. 2. If not, and the `kubeConfig` in resource extensions is set, then it is used. 3. Otherwise, ${HOME}/.kube/config is used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.