From ca0a3884fca4a0618365d396b0500502ee9993c3 Mon Sep 17 00:00:00 2001 From: Ruoyu Ying Date: Thu, 14 Nov 2024 10:45:47 +0800 Subject: [PATCH] helm-chart: update faq svelte ui env Signed-off-by: Ruoyu Ying --- helm-charts/common/ui/templates/configmap.yaml | 4 +++- helm-charts/common/ui/values.yaml | 18 +++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/helm-charts/common/ui/templates/configmap.yaml b/helm-charts/common/ui/templates/configmap.yaml index ce22b014..8757effb 100644 --- a/helm-charts/common/ui/templates/configmap.yaml +++ b/helm-charts/common/ui/templates/configmap.yaml @@ -14,7 +14,7 @@ data: BASIC_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }} {{- else if contains "codetrans-ui" .Values.image.repository }} BASE_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }} - {{- else if or (contains "docsum-ui" .Values.image.repository) (contains "faqgen-ui" .Values.image.repository) }} + {{- else if (contains "docsum-ui" .Values.image.repository) }} DOC_BASE_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }} {{- else if (contains "docsum-react-ui" .Values.image.repository) }} VITE_DOC_SUM_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }} @@ -34,6 +34,8 @@ data: CHAT_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }} {{- else if contains "faqgen-react-ui" .Values.image.repository }} VITE_FAQ_GEN_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }} + {{- else if contains "faqgen-ui" .Values.image.repository }} + FAQ_BASE_URL: {{ .Values.BACKEND_SERVICE_ENDPOINT | quote }} {{- else }} {{- fail "Unsupported ui image: " .Values.image.repository }} {{- end }} diff --git a/helm-charts/common/ui/values.yaml b/helm-charts/common/ui/values.yaml index 6c6537bb..33b636d9 100644 --- a/helm-charts/common/ui/values.yaml +++ b/helm-charts/common/ui/values.yaml @@ -26,15 +26,15 @@ securityContext: {} # Currently comment the securityContext settings # as the inappropriate settings within Conversational UI (need root privilege) # issue: https://github.com/opea-project/GenAIExamples/issues/517 - #readOnlyRootFilesystem: true - #allowPrivilegeEscalation: false - #runAsNonRoot: true - #runAsUser: 1000 - #capabilities: - # drop: - # - ALL - #seccompProfile: - # type: RuntimeDefault + # readOnlyRootFilesystem: true + # allowPrivilegeEscalation: false + # runAsNonRoot: true + # runAsUser: 1000 + # capabilities: + # drop: + # - ALL + # seccompProfile: + # type: RuntimeDefault # internal container port # conventional ui container port: 5173, conversational ui container port: 80