Skip to content

Commit

Permalink
feat(helm): add value to customise interactive session images (reanah…
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed May 8, 2024
1 parent b4f4633 commit 96df221
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions helm/reana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,7 @@ This Helm automatically prefixes all names using the release name to avoid colli
| `workspaces.retention_rules.cronjob_schedule` | Cron format string describing how often pending retention rules should be applied. | "0 2 * * *" |
| `workspaces.paths` | List of additional workspace paths as strings. Each mount string is composed by a key `hostPath`(path to the directory to be mounted from the Kubernetes nodes) and a cluster_pod_mountpath (path inside the cluster containers where the `mountPath` will be mounted) e.g. `hostPath:mountPath`. The first value listed will be the default workspace root path. Any POSIX filesystem mounted on cluster nodes is supported | None |
| `interactive_sessions.cronjob_schedule` | Cron format string describing how often interactive session cleanup should be performed. | "0 3 * * *" |
| `interactive_sessions.environments.jupyter.recommended` | List of recommended environments (container images) for Jupyter notebooks. Each environment is composed of a `name` and an `image`. The first environment in the list is the default one. | `[{"image": "docker.io/jupyter/scipy-notebook:notebook-6.4.5", "name": "Jupyter SciPy Notebook 6.4.5"}]` |
| `interactive_sessions.environments.jupyter.allow_custom` | Allow users to specify custom docker images for Jupyter notebooks. | false |
| `interactive_sessions.maximum_inactivity_period` | Set a limit in days for the maximum inactivity period of interactive sessions. After this period interactive sessions will be automatically closed. To disable autoclosure and allow interactive sessions to run forever, use value "forever". | forever |
| `components.reana_ui.launcher_examples` | Array of demo examples to show in the launch page in the UI. Each demo repository is composed of `name`, `url`, `image_url`; you can also optionally specify a `description` and the `specification` filename. | [] |
3 changes: 3 additions & 0 deletions helm/reana/templates/reana-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ data:
image_url: {{ .image_url | quote }}
specification: {{ .specification | quote }}
{{- end }}
interactive_sessions:
environments:
{{- .Values.interactive_sessions.environments | toYaml | nindent 8 }}
2 changes: 2 additions & 0 deletions helm/reana/templates/reana-workflow-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ spec:
# Environment variables for job controller
- name: REANA_JOB_CONTROLLER_ENV_VARS
value: {{ .Values.components.reana_job_controller.environment | toJson | quote }}
- name: REANA_INTERACTIVE_SESSIONS_ENVIRONMENTS
value: {{ .Values.interactive_sessions.environments | toJson | quote }}
{{- if .Values.reana_hostname }}
- name: REANA_HOSTNAME
value: {{ .Values.reana_hostname }}
Expand Down
7 changes: 6 additions & 1 deletion helm/reana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ workspaces:

interactive_sessions:
cronjob_schedule: "0 3 * * *" # everyday at 3am
maximum_inactivity_period: forever
environments:
jupyter:
recommended:
- image: "docker.io/jupyter/scipy-notebook:notebook-6.4.5"
name: "Jupyter SciPy Notebook 6.4.5"
allow_custom: false

compute_backends:
- kubernetes
Expand Down

0 comments on commit 96df221

Please sign in to comment.