Skip to content

Commit

Permalink
helm-chart: update faq svelte ui env (#560)
Browse files Browse the repository at this point in the history
Signed-off-by: Ruoyu Ying <[email protected]>
  • Loading branch information
Ruoyu-y authored Nov 14, 2024
1 parent 915baa0 commit 5058185
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion helm-charts/common/ui/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
18 changes: 9 additions & 9 deletions helm-charts/common/ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5058185

Please sign in to comment.