Noksa opened a new issue #55:
URL: https://github.com/apache/couchdb-helm/issues/55


   <!-- Thanks for filing an issue! Before hitting the button, please answer 
these questions. It's helpful to search the existing GitHub issues first. It's 
likely that another user has already reported the issue you're facing, or it's 
a known issue that we're already aware of
   
   Fill in as much of the template below as you can.  If you leave out 
information, we can't help you as well.
   
   Be ready for followup questions, and please respond in a timely manner. If 
we can't reproduce a bug or think a feature already exists, we might close your 
issue.  If we're wrong, PLEASE feel free to reopen it and explain why.
   -->
   
   **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 }}
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to