-
Notifications
You must be signed in to change notification settings - Fork 246
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
$.Template.BasePath can't be handled properly #293
Comments
Same issue. What we are doing in our case is including a sub-chart template to do some dynamic adjustements. This was working with unit test 0.2.8, but stopped working when upgrading to 0.4.1:
|
Hello @cyfu, @instriker, Please take a look at the deployment test in the basic sample project. To run the tpl functions the helmchart expects that the linked yaml files are part of the helmcht Greetings, |
Yes it works, thank you! I didn't figure the best way to handle the templates to reference files inside a chart.yaml, but found *.yaml to be working as in this config:
|
Thanks @quintush , it works for me. |
I added following annotation in
helm-unittest/test/data/v3/with-subchart/charts/child-chart/templates/deployment.yaml
.And also created the
configmap.yaml
file in thechild-chart/templates
folder.helm template
command works well, buthelm unittest .
produces error:Attached is the modified
with-subchart
and console output.with-subchart2.zip
console_output.txt
The text was updated successfully, but these errors were encountered: