-
Notifications
You must be signed in to change notification settings - Fork 181
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
can't use range inside library chart defined template in helm #348
Comments
the macro is assuming '.' has Values at the range, but then your passing a list: |
No idea to be honest. I just followed documentation. The first item from range is rendered properly thought. |
in values.yaml, you can define as
in configmap.yaml
|
Issues regarding Helm usage are best posted over on the helm software repo https://github.com/helm/helm. Please repost there. Thanks! |
Hello,
I have pretty much the same issue as described here:
https://stackoverflow.com/questions/77352107/cant-use-range-inside-library-chart-defined-template-in-helm
I have created a simple library chart following the documentation here: https://helm.sh/docs/topics/library_charts/#create-a-simple-library-chart
_configmap.yaml:
I want to create multiple ConfigMaps based on list variable in values.yaml:
In a chart I include this library in configmap.yaml:
I would expect 2 ConfigMap objects to be created but only the first one is. On other hand if I change configmap.yaml to:
then it works as expected. But I would also like to use the "merge" functionality mentioned in documentation.
Would appreciate any help. Thank you.
helm version:
version.BuildInfo{Version:"v3.15.0-rc.2", GitCommit:"c4e37b39dbb341cb3f716220df9f9d306d123a58", GitTreeState:"clean", GoVersion:"go1.22.3"}
_util.tpl:
The text was updated successfully, but these errors were encountered: