Skip to content

Commit

Permalink
helm: name changes of the new env variablae used
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdiazsan committed Sep 4, 2021
1 parent 00e7bde commit 7d8d7c0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm/reana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ This Helm automatically prefixes all names using the release name to avoid colli
| `quota.disk_update` | Cronjob pattern representing how often the users disk quota usage should be updated. Leave it empty to deactivate it | "0 3 * * *" |
| `quota.default_disk_limit` | Default users disk quota limit in bytes. | None |
| `quota.default_cpu_limit` | Default users CPU quota limit in milliseconds. | None |
| `workspaces.paths` | List of optional aditional workspace paths, e.g `{cluster_node_path_1, cluster_node_path_2}`. The first will be the default workspace root path. | None |
| `workspaces.paths` | List of additional workspace paths, e.g `{cluster_node_path_1, cluster_node_path_2}`. The first will be the default workspace root path. Any POSIX filesystem mounted on cluster nodes is supported | None |
6 changes: 5 additions & 1 deletion helm/reana/templates/reana-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,13 @@ spec:
- name: REANA_KUBERNETES_JOBS_MEMORY_LIMIT
value: {{ .Values.kubernetes_jobs_memory_limit | default "4Gi" }}
{{- if .Values.workspaces }}{{ if .Values.workspaces.paths }}
- name: ADMIN_ALLOWED_WORKSPACES
- name: WORKSPACE_PATHS
value: {{ join "," .Values.workspaces.paths }}
{{- end }}{{ end }}
{{- if .Values.workspaces }}{{ if .Values.workspaces.paths }}
- name: DEFAULT_WORKSPACE_PATH
value: {{ index .Values.workspaces.paths 0 }}
{{- end }}{{ end }}
{{- range $key, $value := .Values.db_env_config }}
- name: {{ $key }}
value: {{ $value | quote }}
Expand Down
3 changes: 2 additions & 1 deletion helm/reana/templates/reana-workflow-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,5 @@ spec:
hostPath:
path: {{ $workspace_paths }}
{{- end }}
{{- end }}{{ end }}
{{- end }}{{ end }}

5 changes: 5 additions & 0 deletions helm/reana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ debug:
eos:
enabled: false

workspaces:
paths:
- /tmp/reana
- /tmp/foo

shared_storage:
backend: hostpath # hostpath | cephfs | nfs
volume_size: 200
Expand Down

0 comments on commit 7d8d7c0

Please sign in to comment.