-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[bitnami/common] Template rendering is trying to call function #31503
Comments
Hi, Does the issue happen with this?
|
it doesn't like the quotes, but escaping them still gives the same "not defined" error. |
@javsalgar also tried with |
Could you try removing the common.tplvalues.merge? I think it is being evaluated twice I would like to confirm it |
replaced the first line with |
don't remember this issue happening a few version ago. wondering if it is because of https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_tplvalues.tpl#L15 |
@dgomezleon @javsalgar any updates here? we are basically blocked on this issue. not sure if there is a work-around for this? |
Hi @notwaf , Would this work for you?
It produces the expected output for me. |
nope, no change. still produces the "function undefined" error for me |
Hi, I tried this and it worked without issues configmap.yaml
values.yaml
This provided the expected output
|
yep, that does work if there is only a single config map manifest file. is the merge not needed to merge many different included we have many other k8s manifests that use the render and merge templates. it still produces the same "undefined function" error. |
Let me see if I understand it correctly, could you explain in more detail what you want to achieve, and how the values would look like? Is it that you want the |
do realise that i forgot to mention that we use helmfile. the helmfile includes all of these values files: ---
releases:
- name: blah
namespace: blah
chart: ../the-chart
values:
- base.yaml
- ../../environments/{{ .Environment.Name }}.yaml
- {{ .Environment.Name }}.yaml the existing yaml files are still good, with a few additions: env.yaml configMap:
data:
blah: "xcbvxcvbcbv{{ `{{ASDF}}` }}iouyyiouoiyu" base.yaml configMap:
data:
foo: iouyyiouoiyu
merge: together |
I was able to make it work like this:
to
And using
It produces the correct output for me:
|
woot, that works for me as well. is this a bug in the rendering/common chart itself? or is this the expected behavior of how it is supposed to work? |
Name and Version
bitnami/common v2.29.0
What architecture are you using?
None
What steps will reproduce the bug?
values.yaml
configmap.yaml
2.run helm
Are you using any custom parameters or values?
No response
What is the expected behavior?
yaml should render successfully with the following output:
What do you see instead?
template: gotpl:5: function "ASDF" not defined
Additional information
definitely could be doing something wrong, but seems odd that it breaks like this.
The text was updated successfully, but these errors were encountered: