Skip to content

Commit

Permalink
helm: add reana-ui configmap
Browse files Browse the repository at this point in the history
closes reanahub/reana-ui#103
addresses #277
  • Loading branch information
mvidalgarcia committed Jun 26, 2020
1 parent de6617e commit 1643b38
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 16 deletions.
6 changes: 6 additions & 0 deletions helm/reana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ This Helm automatically prefixes all names using the release name to avoid colli
| `components.reana_ui.enabled` | Instantiate the [REANA-UI](https://github.com/reanahub/reana-ui) | false |
| `components.reana_ui.image` | [REANA-UI image](https://hub.docker.com/repository/docker/reanahub/reana-ui) to use | `reanahub/reana-ui:<chart-release-verion>` |
| `components.reana_ui.imagePullPolicy` | REANA-UI image pull policy | IfNotPresent |
| `components.reana_ui.pooling_secs` | Frecuency of workflow list page reload in seconds | 15 |
| `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.chat_url` | URL of chat channel (footer icon) | None |
| `components.reana_ui.cern_sso` | Enable CERN SSO sign in | false |
| `components.reana_ui.local_users` | Enable local users sign in/up | true |
| `components.reana_workflow_controller.environment` | REANA-Workflow-Controller environment variables | `{SHARED_VOLUME_PATH: /var/reana}` |
| `components.reana_workflow_controller.image` | | `reanahub/reana-workflow-controller:<chart-release-verion>` |
| `components.reana_workflow_controller.imagePullPolicy` | REANA-Workflow-Controller image pull policy | IfNotPresent |
Expand Down
8 changes: 0 additions & 8 deletions helm/reana/templates/announcement-config.yaml

This file was deleted.

11 changes: 6 additions & 5 deletions helm/reana/templates/reana-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ spec:
name: reana-shared-volume
- name: uwsgi-config
mountPath: '/var/reana/uwsgi'
- name: ui-config
mountPath: '/var/reana/config'
env:
- name: REANA_COMPONENT_PREFIX
value: {{ include "reana.prefix" . }}
Expand Down Expand Up @@ -104,11 +106,6 @@ spec:
secretKeyRef:
name: {{ include "reana.prefix" . }}-secrets
key: REANA_SECRET_KEY
- name: REANA_UI_ANNOUNCEMENT
valueFrom:
configMapKeyRef:
name: announcement-config
key: announcement
{{- if .Values.debug.enabled }}
# Disable CORS in development environment, for example
# to connect from an external React application.
Expand Down Expand Up @@ -234,3 +231,7 @@ spec:
configMap:
defaultMode: 420
name: uwsgi-config
- name: ui-config
configMap:
defaultMode: 420
name: ui-config
15 changes: 15 additions & 0 deletions helm/reana/templates/ui-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: ui-config
namespace: {{ .Release.Namespace }}
data:
ui-config.yaml: |
announcement: {{ .Values.components.reana_ui.announcement | quote | default "null" }}
pooling_secs: {{ .Values.components.reana_ui.pooling_secs | default 15 }}
docs_url: {{ .Values.components.reana_ui.docs_url | 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" }}
cern_sso: {{ .Values.components.reana_ui.cern_sso | default false }}
local_users: {{ .Values.components.reana_ui.local_users | default true }}
5 changes: 2 additions & 3 deletions helm/reana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ db_env_config:
components:
reana_ui:
enabled: false
imagePullPolicy: IfNotPresent
image: reanahub/reana-ui:0.6.0-59-g9dacae5
reana_db:
enabled: true
reana_server:
Expand All @@ -75,9 +77,6 @@ components:
reana_message_broker:
imagePullPolicy: IfNotPresent
image: reanahub/reana-message-broker:0.6.0-1-gac35315
reana_ui:
imagePullPolicy: IfNotPresent
image: reanahub/reana-ui:0.6.0-59-g9dacae5

notifications:
enabled: false
Expand Down

0 comments on commit 1643b38

Please sign in to comment.