-
Notifications
You must be signed in to change notification settings - Fork 273
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
fix: 🐛 load valuefiles from config file location #6156
Conversation
@vvagaytsev @stefreak maybe u can also have a look here because it's nearly the same like #6147 |
@ManAnRuck thank you for the contribution! Even though I understand it is confusing, I believe this one is slightly different than #6147, because the current code looks in the If we add test cases for the behaviour as well, I would be ok with a compromise: We first check if the valueFile exists in build path, and if yes we use it (to preserve the current behaviour) – if not, we fall back to looking for it at the Garden config file location. In the next major version (0.14) we can add a breaking change to stop looking for valueFile existence in the build path. WDYT? CC @vvagaytsev |
e5e9d01
to
01e1795
Compare
yes I like this approach :) I already add a check if the file exists in both directories and a more readable error if the file is not found. Edit: in the last commit I remove throwing the error after pipeline fails when a file is not found 🫣 |
92327c4
to
2f89b6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the contribution @ManAnRuck, and thank you for refactoring this to use the async file system function @vvagaytsev
This PR looks good to me, but what is missing is one test that cements this behaviour and mentioning this in the docs. With those two changes I'd be happy to merge this 👍
I think I need some help. https://github.com/garden-io/garden/blob/main/docs/contributing/developing-garden.md#tests when I run
when I then run
regarding the documentation, isn't the current description already the one that describes how it should actually work? i.e. put the files in the config instead of the build folder?
|
@stefreak I added now an integration test. hope this is enough and we don't need e2e tests for this. |
Signed-off-by: Manuel Ruck <[email protected]>
by checking getBuildPath first and throws an error if both locations does not have the file Signed-off-by: Manuel Ruck <[email protected]>
Signed-off-by: Manuel Ruck <[email protected]>
…lative to action config Signed-off-by: Manuel Ruck <[email protected]>
85cc361
to
9d14a46
Compare
Thanks for the update, @ManAnRuck! Feel free to create another PR to fix the testing guidelines! Huge thanks for pointing that out! 👍 The changes look good to me. @stefreak can you take a look too, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
What this PR does / why we need it:
fix read
valueFiles
in helm deployments with sources.repository.urlWhich issue(s) this PR fixes:
Fixes #6146
Special notes for your reviewer:
It's same like #6147 just for
valueFiles
@stefreakI did test it against this (new uncommitted) example:
show example
examples/remote-helm/garden.yml
examples/remote-helm/redis.garden.yml
examples/remote-helm/values.yml
examples/remote-helm/.env