Skip to content

Commit

Permalink
Complete implementation for derived IDP urls
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Oct 21, 2024
1 parent 85f4b7a commit ffad507
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/management-portal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "2.1.5"
description: A Helm chart for RADAR-Base Management Portal to manage projects and participants throughout RADAR-base.
name: management-portal
version: 1.2.5
version: 1.2.6
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/management-portal
Expand Down
2 changes: 1 addition & 1 deletion charts/management-portal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# management-portal
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/management-portal)](https://artifacthub.io/packages/helm/radar-base/management-portal)

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

A Helm chart for RADAR-Base Management Portal to manage projects and participants throughout RADAR-base.

Expand Down
10 changes: 6 additions & 4 deletions charts/management-portal/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{ $https := ternary "http" "https" (or .Values.disable_tls (not .Values.ingress.tls)) }}
{{ $idpLoginUrl := .Values.identity_server.login_url | default (printf "%s://%s/kratos-ui" $https .Values.server_name) }}
{{ $idpServerUrl := .Values.identity_server.server_url | default (printf "%s://%s/kratos" $https .Values.server_name) }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -90,15 +92,15 @@ spec:
- name: MANAGEMENTPORTAL_IDENTITY_SERVER_ADMIN_EMAIL
value: {{ .Values.identity_server.admin_email }}
- name: MANAGEMENTPORTAL_IDENTITY_SERVER_SERVER_URL
value: {{ default (printf "%s://%s/kratos" $https .Values.server_name) .Values.identity_server.server_url }}
value: {{ $idpServerUrl }}
- name: MANAGEMENTPORTAL_IDENTITY_SERVER_LOGIN_URL
value: {{ default (printf "%s://%s/kratos-ui" $https .Values.server_name) .Values.identity_server.login_url }}
value: {{ $idpLoginUrl }}
- name: MANAGEMENTPORTAL_IDENTITY_SERVER_SERVER_ADMIN_URL
value: {{ .Values.identity_server.server_admin_url }}
- name: MANAGEMENTPORTAL_AUTHSERVER_SERVERURL
value: {{ .Values.authserver.server_url | quote }}
value: {{ $idpServerUrl }}
- name: MANAGEMENTPORTAL_AUTHSERVER_LOGINURL
value: {{ .Values.authserver.login_url | quote }}
value: {{ $idpLoginUrl }}
- name: MANAGEMENTPORTAL_AUTHSERVER_SERVERADMINURL
value: {{ .Values.authserver.server_admin_url | quote }}
- name: MANAGEMENTPORTAL_COMMON_ADMIN_PASSWORD
Expand Down

0 comments on commit ffad507

Please sign in to comment.