Skip to content

Commit

Permalink
feat(dask): introduce dask variable in the helm chart (#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alputer committed Sep 9, 2024
1 parent 0e74810 commit c3c3a8d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions helm/reana/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ dependencies:
condition: traefik.enabled
tags:
- ingress
- name: dask-kubernetes-operator
version: 2024.8.0

Check failure on line 39 in helm/reana/Chart.yaml

View workflow job for this annotation

GitHub Actions / lint-helm

39:22 [trailing-spaces] trailing spaces
repository: https://helm.dask.org
condition: dask.enabled
tags:
- dask

Check failure on line 44 in helm/reana/Chart.yaml

View workflow job for this annotation

GitHub Actions / lint-helm

44:1 [empty-lines] too many blank lines (1 > 0)
1 change: 1 addition & 0 deletions helm/reana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ This Helm automatically prefixes all names using the release name to avoid colli
| `components.reana_workflow_engine_snakemake.environment` | [REANA-Workflow-Engine-Snakemake](https://github.com/reanahub/reana-workflow-engine-snakemake) environment variables | `{}` |
| `components.reana_workflow_engine_snakemake.image` | [REANA-Workflow-Engine-Snakemake image](https://hub.docker.com/r/reanahub/reana-workflow-engine-snakemake) to use | `docker.io/reanahub/reana-workflow-engine-snakemake:<chart-release-version>` |
| `compute_backends` | List of supported compute backends (kubernetes, htcondorcern, slurmcern) | "kubernetes" |
| `dask.enabled` | Install dask-kubernetes-operator custom resources in the cluster for dask workflows | true
| `db_env_config.REANA_DB_HOST` | Environment variable to connect to external databases | `<chart-release-name>-db` |
| `db_env_config.REANA_DB_NAME` | Environment variable to connect to external databases | reana |
| `db_env_config.REANA_DB_PORT` | Environment variable to connect to external databases | "5432" |
Expand Down
4 changes: 3 additions & 1 deletion helm/reana/templates/roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ rules:
resources: ["pods", "nodes"]
verbs: ["get", "list", "watch"]
# Custom dask kubernetes resources
{{- if .Values.dask.enabled }}
- apiGroups: ["kubernetes.dask.org"]
resources: ["daskclusters", "daskautoscalers"]
verbs: ["create", "get", "list", "watch", "update", "patch", "delete"]
{{- end }}
# Traefik Middleware permissions
{{- if .Values.traefik.enabled }}
{{- if and .Values.traefik.enabled .Values.dask.enabled }}
- apiGroups: ["traefik.containo.us"]
resources: ["middlewares"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
Expand Down
3 changes: 3 additions & 0 deletions helm/reana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ traefik:
enabled: true
isDefaultClass: true

dask:
enabled: true

pgbouncer:
enabled: false
image: docker.io/bitnami/pgbouncer:1.23.1
Expand Down

0 comments on commit c3c3a8d

Please sign in to comment.