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

Copy loop iterator var for use by goroutine #294

Merged
merged 1 commit into from
Feb 18, 2021
Merged

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Feb 18, 2021

This fixes a bug where only the last dependency would be downloaded.

https://github.com/golang/go/wiki/CommonMistakes#using-goroutines-on-loop-iterator-variables

@hiddeco hiddeco added bug Something isn't working area/helm Helm related issues and pull requests labels Feb 18, 2021
@hiddeco hiddeco requested a review from relu February 18, 2021 00:38
This fixes a bug where only the last dependency would be downloaded.

https://github.com/golang/go/wiki/CommonMistakes#using-goroutines-on-loop-iterator-variables

Signed-off-by: Hidde Beydals <hello@hidde.co>
@hiddeco
Copy link
Member Author

hiddeco commented Feb 18, 2021

@relu while working on this I have been reading much of the code again, and I think I am in favor of refactoring the ClientOptionsFromSecret (and related) functions so that they take a directory path as an argument.

That way we can move many things in the chart reconciler to the helm package, and probably trim down the overall complexity by a lot.

@hiddeco hiddeco merged commit 6b6154c into main Feb 18, 2021
@hiddeco hiddeco deleted the helmchart-dep-bug branch February 18, 2021 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm Helm related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants