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

KUBECONFIG environment variable doesn't get initialized correctly #41

Closed
kailunshi opened this issue Oct 16, 2020 · 0 comments · Fixed by #42
Closed

KUBECONFIG environment variable doesn't get initialized correctly #41

kailunshi opened this issue Oct 16, 2020 · 0 comments · Fixed by #42

Comments

@kailunshi
Copy link
Contributor

kailunshi commented Oct 16, 2020

First time using this provider so just wanted to thank you for starting on this.

First I got an error: Error: diffing release set: %!w(<nil>)
After setting the debug flag, the issue seems to be with helm not recognizing the KUBECONFIG env var.
2020-10-15T23:57:42.851Z [DEBUG] plugin.terraform-provider-helmfile_v0.9.0: Error: Failed to get release *** in namespace kube-system: exit status 1: Error: Kubernetes cluster unreachable: Get "http://localhost:8080/version?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused

I dug deeper and found out the there is an extra line between "KUBECONFIG=" and the file name I specify in the env var list and as a result, helmfile and helm are not getting the right env var. the issue seems to be here: https://github.com/mumoshu/terraform-provider-helmfile/blob/master/pkg/helmfile/release_set.go#L186

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