Skip to content
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

The CouchDB Helm chart has an issue #55

Closed
Noksa opened this issue Sep 6, 2021 · 2 comments · Fixed by #38
Closed

The CouchDB Helm chart has an issue #55

Noksa opened this issue Sep 6, 2021 · 2 comments · Fixed by #38

Comments

@Noksa
Copy link

Noksa commented Sep 6, 2021

Describe the bug
The CouchDB helm chart has an issue with annotations key.
You can find the error in this line: https://github.com/apache/couchdb-helm/blob/main/couchdb/templates/statefulset.yaml#L23

Version of Helm and Kubernetes:

What happened:
An error occurs if we use the top annotations key in a custom values file:

  annotations:
    sidecar.istio.io/inject: "false"

The error:

Error: UPGRADE FAILED: template: smb-cluster/charts/modb/templates/statefulset.yaml:23:28: executing "smb-cluster/charts/modb/templates/statefulset.yaml" at <include (print $.Template.BasePath "/configmap.yaml") .>: error calling include: template: smb-cluster/charts/db/templates/_helpers.tpl:14:14: executing "couchdb.fullname" at <.Values.fullnameOverride>: nil pointer evaluating interface {}.fullnameOverride

What you expected to happen:
We expect it works...

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know:
You should replace "." with "$" when you pass the parameter to include func, because you use with block before and "." inside this block is not the root context.

So instead of this:

checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}

It should be:

checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
@bnhoogvliet
Copy link

We are experiencing the same issue when setting annotations using the annotations key. Any update on this issue?

@kocolosk
Copy link
Member

kocolosk commented Jan 7, 2022

Ah! @willholley actually addressed this with a slightly different fix in #38, but we never ended up merging it. I'll take a look at rebasing it today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants