Add support for arbitrary sidecar containers
diff --git a/couchdb/templates/statefulset.yaml b/couchdb/templates/statefulset.yaml
index 9bf4116..2f3d54d 100644
--- a/couchdb/templates/statefulset.yaml
+++ b/couchdb/templates/statefulset.yaml
@@ -122,6 +122,9 @@
           - name: database-storage
             mountPath: /opt/couchdb-search/data
 {{- end }}
+{{- if .Values.sidecars }}
+{{ toYaml .Values.sidecars | indent 8}}
+{{- end }}
 {{- if .Values.nodeSelector }}
       nodeSelector:
 {{ toYaml .Values.nodeSelector | indent 8 }}
diff --git a/couchdb/values.yaml b/couchdb/values.yaml
index e3de48b..6c3fba9 100644
--- a/couchdb/values.yaml
+++ b/couchdb/values.yaml
@@ -182,3 +182,18 @@
   periodSeconds: 10
   successThreshold: 1
   timeoutSeconds: 1
+
+# Configure arbitrary sidecar containers for CouchDB pods created by the
+# StatefulSet
+sidecars: {}
+  # - name: foo
+  #   image: "busybox"
+  #   imagePullPolicy: IfNotPresent
+  #   resources:
+  #     requests:
+  #       cpu: "0.1"
+  #       memory: 10Mi
+  #   command: ['echo "foo";']
+  #   volumeMounts:
+  #     - name: database-storage
+  #       mountPath: /opt/couchdb/data/
\ No newline at end of file