Skip to content

Commit

Permalink
fix(helm): avoid re-defining REANA_OPENSEARCH_PASSWORD (#843)
Browse files Browse the repository at this point in the history
Avoid re-defining the `REANA_OPENSEARCH_PASSWORD` environment variable
multiple times in reana-workflow-controller.
  • Loading branch information
mdonadoni committed Nov 12, 2024
1 parent b3455db commit 3402412
Show file tree
Hide file tree
Showing 3 changed files with 3 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 @@ -58,7 +58,6 @@ This Helm automatically prefixes all names using the release name to avoid colli
| `components.reana_workflow_controller.environment.REANA_OPENSEARCH_USE_SSL` | Use SSL when connecting to OpenSearch instance. | true |
| `components.reana_workflow_controller.environment.REANA_OPENSEARCH_CA_CERTS` | Path to a file with OpenSearch root CA certificates. | "/code/certs/ca.crt" |
| `components.reana_workflow_controller.environment.REANA_OPENSEARCH_USER` | OpenSearch user name for Basic Authentication. | reana |
| `components.reana_workflow_controller.environment.REANA_OPENSEARCH_PASSWORD` | OpenSearch password for Basic Authentication. Set this value in the Helm command. | "" |
| `components.reana_workflow_engine_cwl.environment` | [REANA-Workflow-Engine-CWL](https://github.com/reanahub/reana-workflow-engine-cwl) environment variables | `{}` |
| `components.reana_workflow_engine_cwl.image` | [REANA-Workflow-Engine-CWL image](https://hub.docker.com/r/reanahub/reana-workflow-engine-cwl) to use | `docker.io/reanahub/reana-workflow-engine-cwl:<chart-release-version>` |
| `components.reana_workflow_engine_serial.environment` | [REANA-Workflow-Engine-Serial](https://github.com/reanahub/reana-workflow-engine-serial) environment variables | `{}` |
Expand Down Expand Up @@ -162,6 +161,7 @@ This Helm automatically prefixes all names using the release name to avoid colli
| `secrets.gitlab.REANA_GITLAB_OAUTH_APP_ID` | GitLab OAuth application id | None |
| `secrets.gitlab.REANA_GITLAB_OAUTH_APP_SECRET` | **[Do not use in production, use secrets instead]** GitLab OAuth application secret | None |
| `secrets.login` | **[Do not use in production, use secrets instead]** Third-party Keycloak identity provider consumer key and secret ([configuration details](https://docs.reana.io/administration/configuration/configuring-access/#keycloak-single-sign-on-configuration)) | `{}` |
| `secrets.opensearch.password` | **[Do not use in production, use secrets instead]** OpenSearch password for Basic Authentication | None |
| `secrets.reana.REANA_SECRET_KEY` | **[Do not use in production, use secrets instead]** REANA encryption secret key | None |
| `serviceAccount.create` | Create a service account for the REANA system user | true |
| `serviceAccount.name` | Service account name | reana |
Expand Down
2 changes: 1 addition & 1 deletion helm/reana/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ metadata:
"helm.sh/resource-policy": keep
type: Opaque
data:
REANA_OPENSEARCH_PASSWORD: {{ .Values.components.reana_workflow_controller.environment.REANA_OPENSEARCH_PASSWORD | default "reana" | b64enc }}
REANA_OPENSEARCH_PASSWORD: {{ .Values.secrets.opensearch.password | default "reana" | b64enc }}
{{- if not .Values.opensearch.securityConfig.enabled }}
OPENSEARCH_INITIAL_ADMIN_PASSWORD: {{ .Values.opensearch.initialAdminPassword | default "reana" | b64enc }} # dev environment only
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion helm/reana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ secrets:
sso: {}
reana: {}
login: {}
opensearch: {}

# Enable and configure SSO authentication via a third-party Keycloak identity provider
login: []
Expand Down Expand Up @@ -116,7 +117,6 @@ components:
REANA_OPENSEARCH_USE_SSL: true
REANA_OPENSEARCH_CA_CERTS: "/code/certs/ca.crt"
REANA_OPENSEARCH_USER: reana
REANA_OPENSEARCH_PASSWORD: "" # Set this value in the Helm command
reana_workflow_engine_cwl:
image: docker.io/reanahub/reana-workflow-engine-cwl:0.9.3
environment: {}
Expand Down

0 comments on commit 3402412

Please sign in to comment.