Skip to content

Commit

Permalink
feat(ui): Set the INTERNAL_API_URL for accessing API from UI pods (#227)
Browse files Browse the repository at this point in the history
* feat(ui): Set the INTERNAL_API_URL for accessing API from UI pods

* Helm-Docs update

---------

Co-authored-by: Marcin Jasion <[email protected]>
  • Loading branch information
mjasion and mjasion authored Nov 3, 2023
1 parent bb0f82e commit 7d540b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/studio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: studio
description: A Helm chart for Kubernetes
type: application
version: 0.7.3
version: 0.7.4
appVersion: "v2.45.1"
maintainers:
- name: iterative
Expand Down
2 changes: 1 addition & 1 deletion charts/studio/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# studio

![Version: 0.7.3](https://img.shields.io/badge/Version-0.7.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.45.1](https://img.shields.io/badge/AppVersion-v2.45.1-informational?style=flat-square)
![Version: 0.7.4](https://img.shields.io/badge/Version-0.7.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.45.1](https://img.shields.io/badge/AppVersion-v2.45.1-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down
3 changes: 3 additions & 0 deletions charts/studio/templates/configmap-studio-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ kind: ConfigMap
metadata:
name: studio-ui
data:

INTERNAL_API_URL: "http://studio-backend:8080{{- if and .Values.global.basePath (not (eq .Values.global.basePath "/")) }}/{{ include "studio.basePath" . }}{{- end }}/api"

{{- with .Values.studioUi.envVars}}
{{- toYaml . | nindent 2 }}
{{- end }}

0 comments on commit 7d540b7

Please sign in to comment.