1
0
mirror of synced 2026-02-07 03:05:56 +00:00

Honour KUBECONFIG environment variable

This commit is contained in:
stefanprodan
2020-06-24 09:25:30 +03:00
parent 0969a0c42a
commit 892230280c

View File

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