Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[incubator/couchdb] fix env vars for db container (#15162)
Browse files Browse the repository at this point in the history
Fixes environment variables not being set correctly for the
couchdb container when `.Values.enableSearch` is `false` (the
default).

The feature toggle for search excluded the search container from the
statefulset but did not exclude the associated environment variables.
The result of this was a duplicate `env` field for the `couchdb`
container which would override the correct `env` field; for example,
`ERL_FLAGS` would not be passed to the container.

This comment fixes the scoping of the `.Values.enableSearch` feature
toggle to include the `env` fields for the `clouseau` container.

Signed-off-by: Will Holley <[email protected]>
  • Loading branch information
willholley authored and k8s-ci-robot committed Jul 5, 2019
1 parent e454f28 commit f803af7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion incubator/couchdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: couchdb
version: 1.2.1
version: 1.2.2
appVersion: 2.3.1
description: A database featuring seamless multi-master sync, that scales from
big data to mobile, with an intuitive HTTP/JSON API and designed for
Expand Down
10 changes: 5 additions & 5 deletions incubator/couchdb/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ spec:
- name: couchdb-statefulset-assembler
image: "{{ .Values.helperImage.repository }}:{{ .Values.helperImage.tag }}"
imagePullPolicy: {{ .Values.helperImage.pullPolicy }}
{{- if .Values.enableSearch }}
- name: clouseau
image: "{{ .Values.searchImage.repository }}:{{ .Values.searchImage.tag }}"
imagePullPolicy: {{ .Values.searchImage.pullPolicy }}
{{- end }}
{{- if not .Values.allowAdminParty }}
env:
- name: COUCHDB_USER
Expand All @@ -116,6 +111,11 @@ spec:
name: {{ template "couchdb.fullname" . }}
key: adminPassword
{{- end }}
{{- if .Values.enableSearch }}
- name: clouseau
image: "{{ .Values.searchImage.repository }}:{{ .Values.searchImage.tag }}"
imagePullPolicy: {{ .Values.searchImage.pullPolicy }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
Expand Down

0 comments on commit f803af7

Please sign in to comment.