Closed zewelor closed 8 months ago
I get the same error on 2.0.1 and 2.0.2 on the exact example from the docs.
Thank you for reporting the issue. I will investigate and try to see what's going on
If it will help something. I've tested other deploy I've got, and it works with 2.0.3. I think difference is that it uses:
persistence:
config:
enabled: true
existingClaim: audiobookshelf-config
So maybe its in case that existingClaim for config is missing ?
I am also having this issue in v2.0.3 as well.
It works great in my FluxCD environment. However, trying to apply it manually for a project I have - that doesnt use gitops for my cluster - I get this error as well. Not sure if this information is helpful in troubleshooting but I thought I would share regardless.
Hmm... this is very strange. I just added the values from the OP to a values.yaml
file and ran helm template -f values.yaml --debug
and this works without any issue.
What Helm version are you using?
I'm using:
version.BuildInfo{Version:"v3.10.1", GitCommit:"9f88ccb6aee40b9a0535fcc7efea6055e1ef72c9", GitTreeState:"clean", GoVersion:"go1.18.7"}
That looks to be the culprit. When I downgrade my Helm version to that, I see the same error. I will see if there is anything I can do about it.
I think I have found the problem and have implemented a fix in v2.1.0.
Great news, thanks !
Confirmed worked without problems, on problematic charts !
Details
What steps did you take and what happened:
Changed app-template version from 2.0.0 to 2.0.1 ( 2.0.3 gives the same error )
What did you expect to happen:
Template rendered
Anything else you would like to add:
Im getting following error:
Error: template: vscode/charts/app-template/templates/common.yaml:14:3: executing "vscode/charts/app-template/templates/common.yaml" at <include "bjw-s.common.loader.generate" .>: error calling include: template: vscode/charts/app-template/charts/common/templates/loader/_generate.tpl:8:6: executing "bjw-s.common.loader.generate" at <include "bjw-s.common.render.controllers" .>: error calling include: template: vscode/charts/app-template/charts/common/templates/render/_controllers.tpl:25:12: executing "bjw-s.common.render.controllers" at <include "bjw-s.common.class.deployment" (dict "rootContext" $ "object" $deploymentObject)>: error calling include: template: vscode/charts/app-template/charts/common/templates/classes/_deployment.tpl:59:13: executing "bjw-s.common.class.deployment" at <include "bjw-s.common.lib.pod.spec" (dict "rootContext" $rootContext "controllerObject" $deploymentObject)>: error calling include: template: vscode/charts/app-template/charts/common/templates/lib/pod/_spec.tpl:61:12: executing "bjw-s.common.lib.pod.spec" at <include "bjw-s.common.lib.pod.field.containers" (dict "ctx" $ctx)>: error calling include: template: vscode/charts/app-template/charts/common/templates/lib/pod/fields/_containers.tpl:22:30: executing "bjw-s.common.lib.pod.field.containers" at <include "bjw-s.common.lib.container.spec" (dict "rootContext" $rootContext "controllerObject" $controllerObject "containerObject" $containerObject)>: error calling include: template: vscode/charts/app-template/charts/common/templates/lib/container/_spec.tpl:48:12: executing "bjw-s.common.lib.container.spec" at <include "bjw-s.common.lib.container.field.volumeMounts" (dict "ctx" $ctx)>: error calling include: template: vscode/charts/app-template/charts/common/templates/lib/container/fields/_volumeMounts.tpl:28:14: executing "bjw-s.common.lib.container.field.volumeMounts" at <eq (dig "statefulset" "volumeClaimTemplates" nil $controllerObject) nil>: error calling eq: uncomparable type []interface {}: []
Additional Information:
I'm using argocd and this is my values.yaml file, which works on 2.0.0: