From 650ddbd32441251e3d2ff64d8fce463dedb24e51 Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Fri, 9 Feb 2024 13:14:18 +0100 Subject: [PATCH] feat(helm): add value to customise URL of privacy notice (#778) Closes reanahub/reana-ui#392 --- helm/reana/README.md | 6 +++--- helm/reana/templates/reana-config.yaml | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/helm/reana/README.md b/helm/reana/README.md index 7b9811c3..15a0dd46 100644 --- a/helm/reana/README.md +++ b/helm/reana/README.md @@ -36,11 +36,11 @@ This Helm automatically prefixes all names using the release name to avoid colli | `components.reana_ui.imagePullPolicy` | REANA-UI image pull policy | IfNotPresent | | `components.reana_ui.polling_secs` | Frequency of workflow list page reload in seconds | 15 | | `components.reana_ui.client_pyvenv` | REANA-Client python environment to source in the welcome example. | None | -| `components.reana_ui.docs_url` | URL of documentation site (footer icon) | None | -| `components.reana_ui.forum_url` | URL of forum site (footer icon) | None | +| `components.reana_ui.docs_url` | URL of documentation site (footer icon) | https://docs.reana.io | +| `components.reana_ui.forum_url` | URL of forum site (footer icon) | https://forum.reana.io | | `components.reana_ui.chat_url` | URL of chat channel (footer icon) | None | +| `components.reana_ui.privacy_notice_url` | URL of the privacy notice (footer icon) | None | | `components.reana_ui.cern_sso` | Enable CERN SSO sign in | false | -| `components.reana_ui.cern_ropo` | Display CERN RoPO privacy policy page | false | | `components.reana_ui.local_users` | Enable local users sign in/up | true | | `components.reana_ui.hide_signup` | Hide users sign up form | false | | `components.reana_workflow_controller.environment` | REANA-Workflow-Controller environment variables | `{SHARED_VOLUME_PATH: /var/reana}` | diff --git a/helm/reana/templates/reana-config.yaml b/helm/reana/templates/reana-config.yaml index a6e33ee3..6e7555e2 100644 --- a/helm/reana/templates/reana-config.yaml +++ b/helm/reana/templates/reana-config.yaml @@ -1,4 +1,7 @@ --- +{{- if .Values.components.reana_ui.cern_ropo }} + {{- fail "`components.reana_ui.cern_ropo` is deprecated, please use `components.reana_ui.privacy_notice_url` instead." }} +{{- end }} apiVersion: v1 kind: ConfigMap metadata: @@ -12,9 +15,9 @@ data: client_pyvenv: {{ .Values.components.reana_ui.client_pyvenv | quote | default "null" }} forum_url: {{ .Values.components.reana_ui.forum_url | quote | default "null" }} chat_url: {{ .Values.components.reana_ui.chat_url | quote | default "null" }} + privacy_notice_url: {{ .Values.components.reana_ui.privacy_notice_url | quote | default "null"}} cern_sso: {{ .Values.components.reana_ui.cern_sso | default false }} login_provider_config: {{ .Values.login | toJson }} - cern_ropo: {{ .Values.components.reana_ui.cern_ropo | default false }} hide_signup: {{ .Values.components.reana_ui.hide_signup | default false }} admin_email: {{ .Values.notifications.email_config.receiver | quote | default "null" }} {{- if not (contains "forever" (.Values.interactive_sessions.maximum_inactivity_period | quote)) }}