From 8c7df77589605bf5d5ee5744300269c1a31c5dc2 Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Wed, 4 Oct 2023 09:40:00 +0200 Subject: [PATCH] added: TELEGRAM_API_URL, TELEGRAM_FILE_URL, TELEGRAM_LOG properties to server-deployment.yaml --- helm/templates/configmap.yaml | 9 +++++++-- helm/templates/server-deployment.yaml | 22 +++++++++++++++++++++- helm/values.yaml | 13 ++++++++----- 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/helm/templates/configmap.yaml b/helm/templates/configmap.yaml index b46272f..0000472 100644 --- a/helm/templates/configmap.yaml +++ b/helm/templates/configmap.yaml @@ -106,6 +106,12 @@ data: EMAIL_INBOUND_DOMAIN: {{ .Values.EMAIL_INBOUND_DOMAIN | quote }} DISABLE_SEND_OFFLINE_EMAIL: {{ .Values.DISABLE_SEND_OFFLINE_EMAIL | quote }} # BOT_RASA_ENDPOINT: {{ .Values.BOT_RASA_ENDPOINT | quote }} + GPT_ENDPOINT: {{ .Values.GPT_ENDPOINT | quote }} + OPENAI_ENDPOINT: {{ .Values.OPENAI_ENDPOINT | quote }} + KB_ENDPOINT: {{ .Values.KB_ENDPOINT | quote }} + TELEGRAM_API_URL: {{ .Values.TELEGRAM_API_URL | quote }} + TELEGRAM_FILE_URL: {{ .Values.TELEGRAM_FILE_URL | quote }} + TELEGRAM_LOG: {{ .Values.TELEGRAM_LOG | quote }} # ----- CHAT21 SERVER ------- APP_ID: {{ .Values.APP_ID | quote }} @@ -193,5 +199,4 @@ data: {{if .Values.TILEBOT_ENDPOINT}}TILEBOT_ENDPOINT: {{ .Values.TILEBOT_ENDPOINT | quote }}{{ end }} - GPT_ENDPOINT: {{ .Values.GPT_ENDPOINT | quote }} - OPENAI_ENDPOINT: {{ .Values.OPENAI_ENDPOINT | quote }} \ No newline at end of file + \ No newline at end of file diff --git a/helm/templates/server-deployment.yaml b/helm/templates/server-deployment.yaml index 41dc9e3..6594f71 100644 --- a/helm/templates/server-deployment.yaml +++ b/helm/templates/server-deployment.yaml @@ -506,7 +506,27 @@ spec: valueFrom: configMapKeyRef: name: {{ include "tiledesk.fullname" . }}-config - key: OPENAI_ENDPOINT + key: OPENAI_ENDPOINT + - name: KB_ENDPOINT + valueFrom: + configMapKeyRef: + name: {{ include "tiledesk.fullname" . }}-config + key: KB_ENDPOINT + - name: TELEGRAM_API_URL + valueFrom: + configMapKeyRef: + name: {{ include "tiledesk.fullname" . }}-config + key: TELEGRAM_API_URL + - name: TELEGRAM_FILE_URL + valueFrom: + configMapKeyRef: + name: {{ include "tiledesk.fullname" . }}-config + key: TELEGRAM_FILE_URL + - name: TELEGRAM_LOG + valueFrom: + configMapKeyRef: + name: {{ include "tiledesk.fullname" . }}-config + key: TELEGRAM_LOG # - name: TILEBOT_ENDPOINT # valueFrom: # configMapKeyRef: diff --git a/helm/values.yaml b/helm/values.yaml index 5271a85..f691183 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -125,7 +125,12 @@ EMAIL_INBOUND_DOMAIN: "" # BOT_DIALOGFLOW_ENDPOINT: "" DISABLE_SEND_OFFLINE_EMAIL: false # BOT_RASA_ENDPOINT: "" - +GPT_ENDPOINT: CHANGEIT +OPENAI_ENDPOINT: CHANGEIT +KB_ENDPOINT: CHANGEIT +TELEGRAM_API_URL: https://api.telegram.org/bot +TELEGRAM_FILE_URL: https://api.telegram.org/file/bot +TELEGRAM_LOG: debug ###### ------SERVER : END------ ###### @@ -215,8 +220,6 @@ CLOSE_BOT_UNRESPONSIVE_REQUESTS_ENABLE: true ENABLE_REDIS_SESSION: false #TILEBOT_ENDPOINT: CHANGEIT -GPT_ENDPOINT: CHANGEIT -OPENAI_ENDPOINT: CHANGEIT server: ## Enable deployment of Tiledesk Server @@ -225,7 +228,7 @@ server: resources: {} image: repository: tiledesk/tiledesk-server - tag: 2.4.53 + tag: 2.4.57 service: type: ClusterIP @@ -238,7 +241,7 @@ serverworker: resources: {} image: repository: tiledesk/tiledesk-server-worker - tag: 2.4.53 + tag: 2.4.57 dashboard: ## Enable deployment of Tiledesk Server