@@ -8,20 +8,35 @@ metadata:
88 labels :
99 {{- include "ui.labels" . | nindent 4 }}
1010data :
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 }}
0 commit comments