This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/master by this push: new 46c24a1 fix: Honour KUBECONFIG new 1a14bb2 Merge pull request #740 from jamesnetherton/574-honour-kubeconfig 46c24a1 is described below commit 46c24a13f4c274e216b48b0ed7b1a26b8b59f779 Author: James Netherton <jamesnether...@gmail.com> AuthorDate: Wed Jun 12 08:47:49 2019 +0100 fix: Honour KUBECONFIG fixes #574 --- pkg/cmd/root.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/root.go b/pkg/cmd/root.go index d6fb173..a5fe022 100644 --- a/pkg/cmd/root.go +++ b/pkg/cmd/root.go @@ -19,6 +19,7 @@ package cmd import ( "context" + "os" "github.com/apache/camel-k/pkg/client" "github.com/pkg/errors" @@ -51,7 +52,7 @@ func NewKamelCommand(ctx context.Context) (*cobra.Command, error) { Long: kamelCommandLongDescription, } - cmd.PersistentFlags().StringVar(&options.KubeConfig, "config", "", "Path to the config file to use for CLI requests") + cmd.PersistentFlags().StringVar(&options.KubeConfig, "config", os.Getenv("KUBECONFIG"), "Path to the config file to use for CLI requests") cmd.PersistentFlags().StringVarP(&options.Namespace, "namespace", "n", "", "Namespace to use for all operations") cmd.AddCommand(newCmdCompletion(&cmd))