Honour KUBECONFIG environment variable

pull/63/head
stefanprodan 5 years ago
parent 0969a0c42a
commit 892230280c

@ -131,6 +131,10 @@ func kubeconfigFlag() {
rootCmd.PersistentFlags().StringVarP(&kubeconfig, "kubeconfig", "", "", rootCmd.PersistentFlags().StringVarP(&kubeconfig, "kubeconfig", "", "",
"absolute path to the kubeconfig file") "absolute path to the kubeconfig file")
} }
if len(os.Getenv("KUBECONFIG")) > 0 {
kubeconfig = os.Getenv("KUBECONFIG")
}
} }
func generateDocs() { func generateDocs() {

Loading…
Cancel
Save