Skip to content

Commit

Permalink
Allow config of http URLs in upload-connect-frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Jul 23, 2024
1 parent 638161e commit 09b57a2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/radar-upload-connect-frontend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "0.5.10"
description: A Helm chart for RADAR-base upload connector frontend application that provides a UI for uploading files and sending them to the upload-backend.
name: radar-upload-connect-frontend
version: 0.3.1
version: 0.3.2
icon: "http://radar-base.org/wp-content/uploads/2022/09/Logo_RADAR-Base-RGB.png"
sources:
- https://github.com/RADAR-base/radar-helm-charts/tree/main/charts/radar-upload-connect-frontend
Expand Down
4 changes: 3 additions & 1 deletion charts/radar-upload-connect-frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# radar-upload-connect-frontend
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/radar-upload-connect-frontend)](https://artifacthub.io/packages/helm/radar-base/radar-upload-connect-frontend)

![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.10](https://img.shields.io/badge/AppVersion-0.5.10-informational?style=flat-square)
![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.10](https://img.shields.io/badge/AppVersion-0.5.10-informational?style=flat-square)

A Helm chart for RADAR-base upload connector frontend application that provides a UI for uploading files and sending them to the upload-backend.

Expand Down Expand Up @@ -70,4 +70,6 @@ A Helm chart for RADAR-base upload connector frontend application that provides
| readinessProbe.failureThreshold | int | `3` | Failure threshold for readinessProbe |
| networkpolicy | object | check `values.yaml` | Network policy defines who can access this application and who this applications has access to |
| server_name | string | `"localhost"` | Server name or domain name |
| vue_app_api_base_url | string | `nil` | Vue app base URL; needed when deviating from https://server_name/upload/api/ |
| vue_app_auth_api | string | `nil` | Vue IDP URL; needed when deviating from https://server_name/managementportal/oauth |
| vue_app_client_id | string | `"radar_upload_frontend"` | OAuth2 client id of the upload connect frontend application |
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ spec:
- name: VUE_APP_BASE_URL
value: "/upload"
- name: VUE_APP_API_BASE_URL
value: "https://{{ .Values.server_name }}/upload/api/"
value: {{ default (printf "https://%s/upload/api" .Values.server_name) .Values.vue_app_api_base_url }}
- name: VUE_APP_AUTH_API
value: "https://{{ .Values.server_name }}/managementportal/oauth"
value: {{ default (printf "https://%s/managementportal/oauth" .Values.server_name) .Values.vue_app_auth_api }}
- name: VUE_APP_AUTH_CALLBACK
value: "{{ .Values.server_name }}/upload/login"
- name: VUE_APP_CLIENT_ID
Expand Down
4 changes: 4 additions & 0 deletions charts/radar-upload-connect-frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,9 @@ networkpolicy:

# -- Server name or domain name
server_name: localhost
# -- Vue app base URL; needed when deviating from https://server_name/upload/api/
vue_app_api_base_url:
# -- Vue IDP URL; needed when deviating from https://server_name/managementportal/oauth
vue_app_auth_api:
# -- OAuth2 client id of the upload connect frontend application
vue_app_client_id: radar_upload_frontend

0 comments on commit 09b57a2

Please sign in to comment.