From bb10e8ab9bd1d295842a36a807cd7d549e87cad7 Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Thu, 27 Jul 2023 09:53:18 +0200 Subject: [PATCH] helm: add option to set maximum size for file preview Closes #728 --- CHANGES.rst | 1 + helm/reana/README.md | 1 + helm/reana/templates/reana-config.yaml | 1 + helm/reana/values.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 0b7d0f54..88258731 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,7 @@ Version 0.9.1 (UNRELEASED) - Adds new configuration option ``ingress.tls.hosts`` to define hosts that are present in the TLS certificate, in order to support cert-manager's automatic creation of certificates. - Adds new configuration option ``notifications.email_config.smtp_ssl`` to use SSL when connecting to the SMTP email server. - Adds new configuration option ``notifications.email_config.smtp_starttls`` to use the STARTTLS command to enable encryption after connecting to the SMTP email server. + - Adds new configuration option ``components.reana_ui.file_preview_size_limit`` to set the maximum file size that can be previewed in the web interface. - Changes uWSGI configuration to add vacuuming of generated files and sockets. - Fixes uWSGI memory consumption on systems with very high allowed number of open files. - Fixes cronjob failures due to database connection issues when REANA is deployed with non-default namespace or prefix. diff --git a/helm/reana/README.md b/helm/reana/README.md index accb0cb4..d023c82e 100644 --- a/helm/reana/README.md +++ b/helm/reana/README.md @@ -31,6 +31,7 @@ This Helm automatically prefixes all names using the release name to avoid colli | `components.reana_server.uwsgi.log_5xx` | Log only error HTTP requests with status code 5xx. To make this configuration effective `components.reana_server.uwsgi.log_all` must be false. | true | | `components.reana_ui.announcement` | Announcement message displayed in site top banner | None | | `components.reana_ui.enabled` | Instantiate the [REANA-UI](https://github.com/reanahub/reana-ui) | true | +| `components.reana_ui.file_preview_size_limit` | Maximum file size (in bytes) that can be previewed in the web interface. Default value: 5242880 bytes = 5 MiB | 5242880 | | `components.reana_ui.image` | [REANA-UI image](https://hub.docker.com/r/reanahub/reana-ui) to use | `docker.io/reanahub/reana-ui:` | | `components.reana_ui.imagePullPolicy` | REANA-UI image pull policy | IfNotPresent | | `components.reana_ui.polling_secs` | Frequency of workflow list page reload in seconds | 15 | diff --git a/helm/reana/templates/reana-config.yaml b/helm/reana/templates/reana-config.yaml index 041661a4..051b8793 100644 --- a/helm/reana/templates/reana-config.yaml +++ b/helm/reana/templates/reana-config.yaml @@ -33,3 +33,4 @@ data: user_confirmation: false {{- end }} quota_enabled: {{ .Values.quota.enabled }} + file_preview_size_limit: {{ int .Values.components.reana_ui.file_preview_size_limit }} diff --git a/helm/reana/values.yaml b/helm/reana/values.yaml index 81f2f050..6cccfed5 100644 --- a/helm/reana/values.yaml +++ b/helm/reana/values.yaml @@ -75,6 +75,7 @@ components: enabled: true docs_url: https://docs.reana.io forum_url: https://forum.reana.io + file_preview_size_limit: 5242880 # 5 * 1024**2 = 5 MiB imagePullPolicy: IfNotPresent image: docker.io/reanahub/reana-ui:0.9.1-alpha.3 reana_db: