mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Honour KUBECONFIG environment variable
This commit is contained in:
parent
0969a0c42a
commit
892230280c
1 changed files with 4 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue