Skip to content

Commit 42dec51

Browse files
committed
updated videoqna-ui vars and configmap
Signed-off-by: Krishna Murti <krishna.murti@intel.com>
1 parent fc17e30 commit 42dec51

File tree

3 files changed

+32
-17
lines changed

3 files changed

+32
-17
lines changed

helm-charts/common/ui/templates/configmap.yaml

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,35 @@ metadata:
88
labels:
99
{{- include "ui.labels" . | nindent 4 }}
1010
data:
11-
{{- if .Values.videoqnaBackendHealthCheck }}
12-
BACKEND_HEALTH_CHECK_ENDPOINT: {{ tpl .Values.videoqnaBackendHealthCheck . | quote }}
13-
{{- end }}
14-
{{- if .Values.videoqnaBackendService }}
15-
BACKEND_SERVICE_ENDPOINT: {{ tpl .Values.videoqnaBackendService . | quote }}
16-
{{- end }}
17-
APP_BACKEND_SERVICE_ENDPOINT: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
18-
APP_DATA_PREP_SERVICE_URL: {{ .Values.DATAPREP_SERVICE_ENDPOINT | quote }}
11+
{{- if contains "codegen-react-ui" .Values.image.repository }}
12+
VITE_CODE_GEN_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
13+
{{- else if contains "codegen-ui" .Values.image.repository }}
14+
BASIC_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
15+
{{- else if contains "codetrans-ui" .Values.image.repository }}
16+
BASE_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
17+
{{- else if or (contains "docsum-ui" .Values.image.repository) (contains "faqgen-ui" .Values.image.repository) }}
18+
DOC_BASE_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
19+
{{- else if (contains "docsum-react-ui" .Values.image.repository) }}
20+
VITE_DOC_SUM_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
21+
{{- else if contains "chatqna-ui" .Values.image.repository }}
1922
CHAT_BASE_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
2023
UPLOAD_FILE_BASE_URL: {{ .Values.DATAPREP_SERVICE_ENDPOINT | quote }}
2124
GET_FILE: {{ .Values.DATAPREP_GET_FILE_ENDPOINT | quote }}
2225
DELETE_FILE: {{ .Values.DATAPREP_DELETE_FILE_ENDPOINT | quote }}
23-
BASE_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
24-
DOC_BASE_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
25-
BASIC_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
26-
VITE_CODE_GEN_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
27-
VITE_DOC_SUM_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
26+
{{- else if contains "chatqna-conversation-ui" .Values.image.repository}}
27+
APP_BACKEND_SERVICE_ENDPOINT: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
28+
APP_DATA_PREP_SERVICE_URL: {{ .Values.DATAPREP_SERVICE_ENDPOINT | quote }}
29+
APP_DATA_PREP_GET_FILE_URL: {{ .Values.DATAPREP_GET_FILE_ENDPOINT | quote }}
30+
APP_DATA_PREP_DELETE_FILE_URL: {{ .Values.DATAPREP_DELETE_FILE_ENDPOINT | quote }}
31+
{{- else if contains "visualqna-ui" .Values.image.repository }}
32+
BACKEND_BASE_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
33+
{{- else if contains "audioqna-ui" .Values.image.repository }}
34+
CHAT_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
35+
{{- else if contains "faqgen-react-ui" .Values.image.repository }}
36+
VITE_FAQ_GEN_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }}
37+
{{- else if contains "videoqna-ui" .Values.image.repository }}
38+
BACKEND_SERVICE_ENDPOINT: {{ tpl .Values.BACKEND_SERVICE_ENDPOINT . | quote }}
39+
BACKEND_HEALTH_CHECK_ENDPOINT: {{ tpl .Values.BACKEND_HEALTH_CHECK_ENDPOINT . | quote }}
40+
{{- else }}
41+
{{- fail "Unsupported ui image: " .Values.image.repository }}
42+
{{- end }}

helm-charts/common/ui/variant_videoqna-values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ image:
77
tag: "latest"
88

99
# Endpoint for VideoQnA Backend. Test Value - Override it with actual Backend endpoint
10-
videoqnaBackendService: "http://localhost:8888/v1/videoqna"
10+
BACKEND_SERVICE_ENDPOINT: "http://localhost:8888/v1/videoqna"
1111
# Endpoint for VideoQnA Backend Service health check. Test Value - Override it with actual Backend endpoint
12-
videoqnaBackendHealthCheck: "http://localhost:8888/v1/health_check"
12+
BACKEND_HEALTH_CHECK_ENDPOINT: "http://localhost:8888/v1/health_check"
1313

1414
containerPort: 5173
1515
service:

helm-charts/videoqna/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ videoqna-ui:
7272
nameOverride: "ui"
7373

7474
# Following template value will be resolved in videoqna-ui ConfigMap
75-
videoqnaBackendService: http://{{ .Release.Name | trunc 57 | trimSuffix "-" }}-nginx/v1/videoqna
76-
videoqnaBackendHealthCheck: http://{{ .Release.Name | trunc 57 | trimSuffix "-" }}-nginx/v1/health_check
75+
BACKEND_SERVICE_ENDPOINT: http://{{ .Release.Name | trunc 57 | trimSuffix "-" }}-nginx/v1/videoqna
76+
BACKEND_HEALTH_CHECK_ENDPOINT: http://{{ .Release.Name | trunc 57 | trimSuffix "-" }}-nginx/v1/health_check
7777

7878
containerPort: 5173
7979
service:

0 commit comments

Comments
 (0)