Skip to content

Commit

Permalink
fix: allow users to handle properly baseUrl in portal next for multi …
Browse files Browse the repository at this point in the history
…tenant installations
  • Loading branch information
Okhelifi committed Jan 17, 2025
1 parent 956df94 commit 367d7e8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ annotations:
###########
# "changes" must be the last section in this file, because a CI job clean it after each release
###########
artifacthub.io/changes:
artifacthub.io/changes: |
- kind: fixed
description: 'allow users to handle properly baseUrl in portal next for multi tenant installations'
links:
- name: Github Issue
url: https://github.com/gravitee-io/issues/issues/10204
11 changes: 11 additions & 0 deletions helm/templates/portal/portal-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,15 @@ data:
}
}
}
config-next.json: |
{
{{- if .Values.portal.enforceEnvironmentId }}
"environmentId": "{{ .Values.portal.enforceEnvironmentId }}",
{{- end }}
{{- if .Values.portal.baseURL }}
"baseURL": "{{ .Values.portal.baseURL }}"
{{- else }}
"baseURL": "{{ .Values.api.ingress.portal.scheme }}://{{ index .Values.api.ingress.portal.hosts 0 }}{{ .Values.api.ingress.portal.path }}"
{{- end }}
}
{{- end -}}
3 changes: 3 additions & 0 deletions helm/templates/portal/portal-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ spec:
- name: config
mountPath: /usr/share/nginx/html/assets/config.json
subPath: config.json
- name: config
mountPath: /usr/share/nginx/html/next/browser/assets/config.json
subPath: config-next.json
{{- with .Values.portal.extraVolumeMounts }}
{{- tpl . $ | nindent 12 }}
{{- end }}
Expand Down

0 comments on commit 367d7e8

Please sign in to comment.