This is an automated email from the ASF dual-hosted git repository.

willholley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-helm.git

commit efb9fa58748eabf825606e1e87e73cad99dbd1e5
Author: Arne Diekmann <[email protected]>
AuthorDate: Wed Jan 22 18:03:39 2020 +0100

    Add support for arbitrary sidecar containers
---
 couchdb/templates/statefulset.yaml |  3 +++
 couchdb/values.yaml                | 15 +++++++++++++++
 2 files changed, 18 insertions(+)

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 @@ spec:
           - 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 @@ readinessProbe:
   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

Reply via email to