helm-git
helm-git copied to clipboard
fix(helm-git): multiple fixes
Why
I was trying this awesome plugin, but found some issues with the way I wanted to use it. I want to be able to use packaged helm charts from a branch, the charts and index.yaml
might be in the root folder of the repository and this was not allowed.
Also had to set the url
to git+ssh://[email protected]/org/repository/path/package-x.x.x.tgz?ref=branch&sparse=0&depupdate=1&package=0
in index.yaml
on all the packages for this work.
What
- add trace: makes it easier to troubleshoot
- allow using repository root folder: there was an assumption that there would be a path with
@
- ensure we have the latest from ref: when using
HELM_GIT_REPO_CACHE
the branch wouldn't be updated, probably the initial intention was to only use tags - lint file: shellcheck
Thank you for the contribution 🙏 I'm currently on vacation, I will take a look once back in a few days.
Thank you for the contribution 🙏 I'm currently on vacation, I will take a look once back in a few days.
Thank you for the feedback. Enjoy your vacations! 🌴
Ping 👼
Hey there! Sorry for the long delay and thank you for pinging again!
This looks good! Can you please add a test to validate that we can now refer to the root without using @
and that it still works with the old way?
Thank you!
@GMartinez-Sisti hey, I would like to merge this PR, let me know if you're able to do the required change. I may take the PR over if not.
@GMartinez-Sisti hey, I would like to merge this PR, let me know if you're able to do the required change. I may take the PR over if not.
Hi @aslafy-z, sorry for not picking this up earlier! I already lost context for this PR 😬 Feel free to take it 😄
add trace: makes it easier to troubleshoot
Ported with https://github.com/aslafy-z/helm-git/pull/266
allow using repository root folder: there was an assumption that there would be a path with @
See #267, not sure how it would behave with GitLab multi level hierarchy for instance. Will keep as a draft until I find a solution.
ensure we have the latest from ref: when using HELM_GIT_REPO_CACHE the branch wouldn't be updated, probably the initial intention was to only use tags
Wouldn't this defeat the cache? What would be the right time to refresh for you?
lint file: shellcheck
Ported with #268. It would be a nice to have as a pre-commit step/in the ci.