Skip to content

Commit

Permalink
helm: add reana-ui configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidalgarcia committed Jun 24, 2020
1 parent 8e46eeb commit 2c7b6c1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
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
17 changes: 17 additions & 0 deletions helm/reana/templates/ui-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: ui-config
namespace: {{ .Release.Namespace }}
data:
ui-config.json: |
{
"announcement": {{ .Values.components.reana_ui.announcement | default "" | quote }},
"pooling_secs": {{ .Values.components.reana_ui.pooling_secs | default 15 }},
"docs_url": {{ .Values.components.reana_ui.docs_url | default "http://docs.reana.io/" | quote }},
"forum_url": {{ .Values.components.reana_ui.forum_url | default "https://forum.reana.io/" | quote }},
"mattermost_url": {{ .Values.components.reana_ui.mattermost_url | default "https://mattermost.web.cern.ch/it-dep/channels/reana" | quote }},
"cern_sso": {{ .Values.components.reana_ui.cern_sso | default | default false }},
"local_users": {{ .Values.components.reana_ui.local_users | default | default false }}
}
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 2c7b6c1

Please sign in to comment.