Add support for pod annotations

Ported from https://github.com/helm/charts/pull/16794.

Co-authored-by: Sylvain Perrinel <sylvain.perrinel@gmail.com>
diff --git a/couchdb/README.md b/couchdb/README.md
index 1f4bc60..0f3c90d 100644
--- a/couchdb/README.md
+++ b/couchdb/README.md
@@ -132,6 +132,7 @@
 | `persistentVolume.storageClass` | Default for the Kube cluster           |
 | `podManagementPolicy`           | Parallel                               |
 | `affinity`                      |                                        |
+| `annotations`                   |                                        |
 | `resources`                     |                                        |
 | `service.annotations`           |                                        |
 | `service.enabled`               | true                                   |
diff --git a/couchdb/templates/statefulset.yaml b/couchdb/templates/statefulset.yaml
index fab2c36..416b594 100644
--- a/couchdb/templates/statefulset.yaml
+++ b/couchdb/templates/statefulset.yaml
@@ -18,6 +18,10 @@
     metadata:
       labels:
 {{ include "couchdb.ss.selector" . | indent 8 }}
+{{- with .Values.annotations }}
+      annotations:
+{{ toYaml . | indent 8 }}
+{{- end }}
     spec:
       {{- if .Values.schedulerName }}
       schedulerName: "{{ .Values.schedulerName }}"
diff --git a/couchdb/values.yaml b/couchdb/values.yaml
index 8cc24f8..cbff0f9 100644
--- a/couchdb/values.yaml
+++ b/couchdb/values.yaml
@@ -80,6 +80,9 @@
   #             - couchdb
   #       topologyKey: "kubernetes.io/hostname"
 
+## Optional pod annotations
+annotations:
+
 ## A StatefulSet requires a headless Service to establish the stable network
 ## identities of the Pods, and that Service is created automatically by this
 ## chart without any additional configuration. The Service block below refers