Skip to content

Commit 7f50bf2

Browse files
committed
feat(helm): replace FLASK_ENV with FLASK_DEBUG for debug mode
The FLASK_ENV environment variable was deprecated in Flask 2.3 and removed in Flask 3.x. With the upgrade of REANA components to Flask 3.x, replace all FLASK_ENV=development settings in the Helm templates with the equivalent FLASK_DEBUG=1 across the reana-server, reana-workflow-controller, and cronjob deployments. Closes reanahub/reana-server#770.
1 parent 1627ab7 commit 7f50bf2

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

helm/reana/templates/cronjobs.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ spec:
4242
value: {{ .Values.reana_hostname | quote }}
4343
{{- end }}
4444
{{- if .Values.debug.enabled }}
45-
- name: FLASK_ENV
46-
value: "development"
45+
- name: FLASK_DEBUG
46+
value: "1"
4747
{{- end }}
4848
- name: REANA_DB_USERNAME
4949
valueFrom:
@@ -169,8 +169,8 @@ spec:
169169
value: {{ .Values.reana_hostname | quote }}
170170
{{- end }}
171171
{{- if .Values.debug.enabled }}
172-
- name: FLASK_ENV
173-
value: "development"
172+
- name: FLASK_DEBUG
173+
value: "1"
174174
{{- end }}
175175
- name: REANA_DB_USERNAME
176176
valueFrom:
@@ -253,8 +253,8 @@ spec:
253253
value: {{ .Values.reana_hostname | quote }}
254254
{{- end }}
255255
{{- if .Values.debug.enabled }}
256-
- name: FLASK_ENV
257-
value: "development"
256+
- name: FLASK_DEBUG
257+
value: "1"
258258
{{- end }}
259259
- name: REANA_DB_USERNAME
260260
valueFrom:
@@ -348,8 +348,8 @@ spec:
348348
value: {{ .Values.reana_hostname | quote }}
349349
{{- end }}
350350
{{- if .Values.debug.enabled }}
351-
- name: FLASK_ENV
352-
value: "development"
351+
- name: FLASK_DEBUG
352+
value: "1"
353353
{{- end }}
354354
- name: REANA_DB_USERNAME
355355
valueFrom:

helm/reana/templates/reana-server.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ spec:
246246
value: "{{ include "reana.prefix" . }}-wdb"
247247
- name: WDB_NO_BROWSER_AUTO_OPEN
248248
value: "True"
249-
- name: FLASK_ENV
250-
value: "development"
249+
- name: FLASK_DEBUG
250+
value: "1"
251251
# Hack to not verify SSL connections https://stackoverflow.com/questions/48391750/disable-python-requests-ssl-validation-for-an-imported-module
252252
- name: CURL_CA_BUNDLE
253253
value: ""
@@ -331,8 +331,8 @@ spec:
331331
value: "{{ include "reana.prefix" . }}-wdb"
332332
- name: WDB_NO_BROWSER_AUTO_OPEN
333333
value: "True"
334-
- name: FLASK_ENV
335-
value: "development"
334+
- name: FLASK_DEBUG
335+
value: "1"
336336
# Hack to not verify SSL connections https://stackoverflow.com/questions/48391750/disable-python-requests-ssl-validation-for-an-imported-module
337337
- name: CURL_CA_BUNDLE
338338
value: ""

helm/reana/templates/reana-workflow-controller.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ spec:
263263
value: "{{ include "reana.prefix" . }}-wdb"
264264
- name: WDB_NO_BROWSER_AUTO_OPEN
265265
value: "True"
266-
- name: FLASK_ENV
267-
value: "development"
266+
- name: FLASK_DEBUG
267+
value: "1"
268268
# Hack to not verify SSL connections https://stackoverflow.com/questions/48391750/disable-python-requests-ssl-validation-for-an-imported-module
269269
- name: CURL_CA_BUNDLE
270270
value: ""
@@ -344,8 +344,8 @@ spec:
344344
value: "{{ include "reana.prefix" . }}-wdb"
345345
- name: WDB_NO_BROWSER_AUTO_OPEN
346346
value: "True"
347-
- name: FLASK_ENV
348-
value: "development"
347+
- name: FLASK_DEBUG
348+
value: "1"
349349
# Hack to not verify SSL connections https://stackoverflow.com/questions/48391750/disable-python-requests-ssl-validation-for-an-imported-module
350350
- name: CURL_CA_BUNDLE
351351
value: ""

0 commit comments

Comments
 (0)