Skip to content

Commit ab4ffe0

Browse files
committed
Prevent duplicated rendering of FEATURE_ENABLE_PAYMENT
If the FEATURE_ENABLE_PAYMENT feature flag is set by envVars, do not render it again. Otherwise, we might end up in confusing cases like: The flag was set to true, but it's additionally rendered with a default to false.
1 parent a5f1ae4 commit ab4ffe0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

charts/team-settings/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ spec:
4040
value: https://{{ .Values.config.externalUrls.backendRest }}
4141
- name: BACKEND_WS
4242
value: wss://{{ .Values.config.externalUrls.backendWebsocket }}
43+
44+
{{ if not hasKey .Values.envVars "FEATURE_ENABLE_PAYMENT"}}
4345
# NOTE defaults to 'true', but since we assume on-prem here, we default to 'false'
4446
# SRC https://github.com/wireapp/wire-web-config-default/blob/master/wire-team-settings/.env.defaults#L48
4547
- name: FEATURE_ENABLE_PAYMENT
4648
value: {{ .Values.config.enablePayment | default false | quote }}
49+
{{ end }}
4750
{{- range $key, $val := .Values.envVars }}
4851
- name: {{ $key }}
4952
value: {{ $val | quote }}

0 commit comments

Comments
 (0)