diff --git a/couchdb/README.md b/couchdb/README.md index 3f77687..8d93599 100644 --- a/couchdb/README.md +++ b/couchdb/README.md @@ -236,6 +236,8 @@ A variety of other parameters are also configurable. See the comments in the | `prometheusPort.bind_address` | 0.0.0.0 | | `lifecycle` | {} | | `lifecycleTemplate` | false (set `true` and add a named `lifecycleTemplate` if using couchdb as a subchart) | +| `extraEnv` | [] | +| `extraEnvTemplate` | false (set `true` and add a named `extraEnvTemplate` if using couchdb as a subchart) | | `placementConfig.enabled` | false | | `placementConfig.image.repository` | caligrafix/couchdb-autoscaler-placement-manager | | `placementConfig.image.tag` | 0.1.0 | diff --git a/couchdb/templates/statefulset.yaml b/couchdb/templates/statefulset.yaml index 339887d..ed112a6 100644 --- a/couchdb/templates/statefulset.yaml +++ b/couchdb/templates/statefulset.yaml @@ -113,6 +113,11 @@ spec: key: erlangCookie - name: ERL_FLAGS value: "{{ range $k, $v := .Values.erlangFlags }} -{{ $k }} {{ $v }} {{ end }}" +{{- if .Values.extraEnv }} +{{ toYaml .Values.extraEnv | indent 12 }} +{{- else if .Values.extraEnvTemplate }} +{{- include "couchdb.extraEnvTemplate" . | indent 12 }} +{{- end }} {{- if .Values.livenessProbe.enabled }} livenessProbe: {{- if .Values.couchdbConfig.chttpd.require_valid_user }}