Fix chart rendering when annotations specified

Commit 70b2777edd3b792c30dd025097ee598b64a45efa caused user-provided
annotations to break the `checksum` StatefulSet annotations. The
`{{ with .Values.annotations }}` instruction changes the scope
under which the checksum is calculated when user annotations are present.

This removes the `{{ with .Values.annotations }}` and instead just
writes out the user-provided annotations directly.

I've also added a user-provided annotation to the `values.yaml` used
in the smoke test to verify the fix.

Fixes #37
2 files changed
tree: 0d274d8a561429c1e451eba1a7b400342494bf5c
  1. .github/
  2. couchdb/
  3. docs/
  4. test/
  5. .asf.yaml
  6. .helmignore
  7. LICENSE
  8. Makefile
  9. README.md
README.md

CouchDB Helm Charts

This repository contains assets related to the CouchDB Helm chart.

Layout

  • couchdb: contains the unbundled Helm chart
  • test: containes scripts to test the chart locally using Kind

Testing

make test will run an integration test using Kind. This stands up a Kubernetes cluster locally and ensures the chart will deploy using the default options and Helm.

Releasing

Chart versions are immutable. On every version change, make publish should be run to create a new chart bundle and update the repostory metadata.

Feedback / Issues / Contributing

General feedback is welcome at our user or developer mailing lists.

Apache CouchDB has a CONTRIBUTING file with details on how to get started with issue reporting or contributing to the upkeep of this project. In short, use GitHub Issues, do not report anything to the Helm team.

The chart follows the technical guidelines / best practices maintained by the Helm team.