From be86ea8ecba3ca65fd5d675c4eb1b470a6de6d3e Mon Sep 17 00:00:00 2001 From: Serhii Ponomarenko <116438358+tiptophelmet@users.noreply.github.com> Date: Thu, 25 Jul 2024 23:09:44 +0300 Subject: [PATCH] :hammer: Support chat flag (#1573) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔨 Add `supportChatEnabled` helm value * 🔨 Add `REACT_APP_SUPPORT_CHAT_ENABLED` env to `front` --- config/configStruct.go | 1 + helm-chart/templates/06-front-deployment.yaml | 2 ++ helm-chart/values.yaml | 1 + 3 files changed, 4 insertions(+) diff --git a/config/configStruct.go b/config/configStruct.go index 1f0bc9211..5503f1f3b 100644 --- a/config/configStruct.go +++ b/config/configStruct.go @@ -95,6 +95,7 @@ type ConfigStruct struct { HeadlessMode bool `yaml:"headless" json:"headless" default:"false"` License string `yaml:"license" json:"license" default:""` CloudLicenseEnabled bool `yaml:"cloudLicenseEnabled" json:"cloudLicenseEnabled" default:"true"` + SupportChatEnabled bool `yaml:"supportChatEnabled" json:"supportChatEnabled" default:"false"` Scripting configStructs.ScriptingConfig `yaml:"scripting" json:"scripting"` Manifests ManifestsConfig `yaml:"manifests,omitempty" json:"manifests,omitempty"` Timezone string `yaml:"timezone" json:"timezone"` diff --git a/helm-chart/templates/06-front-deployment.yaml b/helm-chart/templates/06-front-deployment.yaml index 65e25745d..eb5041a9a 100644 --- a/helm-chart/templates/06-front-deployment.yaml +++ b/helm-chart/templates/06-front-deployment.yaml @@ -58,6 +58,8 @@ spec: {{- else -}} {{ .Values.cloudLicenseEnabled }} {{- end }}' + - name: REACT_APP_SUPPORT_CHAT_ENABLED + value: '{{ not .Values.supportChatEnabled | ternary "false" .Values.supportChatEnabled }}' {{- if .Values.tap.docker.overrideTag.front }} image: '{{ .Values.tap.docker.registry }}/front:{{ .Values.tap.docker.overrideTag.front }}' {{ else }} diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index c78ea859c..eb2bc6967 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -137,6 +137,7 @@ dumpLogs: false headless: false license: "" cloudLicenseEnabled: true +supportChatEnabled: false scripting: env: {} source: ""