Skip to content

Commit

Permalink
added extraEnv and extraEnvTemplate support
Browse files Browse the repository at this point in the history
  • Loading branch information
yekibud committed Jun 21, 2023
1 parent 4861a3d commit 46a3770
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions couchdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
5 changes: 5 additions & 0 deletions couchdb/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 46a3770

Please sign in to comment.