-
Notifications
You must be signed in to change notification settings - Fork 311
Download remote chart to Archive dir #30
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
Download remote chart to Archive dir #30
Conversation
|
Sounds like a good idea to prevent clutter. Could there be any issues when running multiple helm instances in parallel? I haven't looked into DownloadTo to see if it does any locking or so. |
|
I just made it to mimics the way, Helm works. It works fine to me (as am using them often) |
|
@aananthraj I mean multiple instances of helm running under the same user account at the same time and so using the same archive directory. I haven't looked into the Helm source code if it does anything to prevent races between different processes when both try to download the same chart to the archive directory at the same time and so possibly corrupting the file or leading to failed verifications of the chart. If locking is done in downloadTo we'd be fine. If this isn't the case then we'd need to mimic the locking logic in helm diff, too, when writing to the shared archive directory. |
|
@elemental-lf , That was nice. Thanks..!!. I have a query.
This could happen in PWD as well right..?, I mean when charts are downloaded to current working directory. upon inspection codes of helm and helm diff plugin, I would like to share the following infrence. helm diff plugin uses
so logic would be exactly the same. |
|
This would also happen with the download to the cwd. But if there is a locking problem (at all), then it would be confined. I took a quick look at Helm now and I don't see any looking, so we're probably fine (or not worse than Helm itself). |
|
ya, exactly 😄 , can this be merged..? now. |
|
Thanks! |
|
Thanks @databus23 and @elemental-lf . |
Downloading remote chart to Archive dir (~/.helm/cache/archive) would keep the current dir clean.