Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New env should default to in-cluster config #58

Closed
johnSchnake opened this issue Oct 8, 2021 · 0 comments · Fixed by #63
Closed

New env should default to in-cluster config #58

johnSchnake opened this issue Oct 8, 2021 · 0 comments · Fixed by #63

Comments

@johnSchnake
Copy link
Contributor

When doing a simple API call example I had to do the following:

	c,err := envconf.NewWithKubeconfig("")
	if err !=nil{
		t.Fatalf("Failed to get in-cluster config: %v", err)
	}
	e := env.NewWithConfig(c)

I would have expected e := env.New() to use a default in-cluster config or something but I got a panic.

If I did something wrong let me know, but otherwise I think a tweak should be made to avoid those 4 extra lines of boilerplate, in-cluster-config setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant