From f656acea6478467a0af4c6da00a1fd6effb83aef Mon Sep 17 00:00:00 2001 From: Serhii Ponomarenko <116438358+tiptophelmet@users.noreply.github.com> Date: Fri, 21 Feb 2025 18:53:27 +0200 Subject: [PATCH] :wrench: Add `aiAssistantEnabled` helm value (#1717) * :wrench: Add `aiAssistantEnabled` helm value * :bug: Add quotes to `AI_ASSISTANT_ENABLED` config val --------- Co-authored-by: Alon Girmonsky <1990761+alongir@users.noreply.github.com> --- config/configStruct.go | 1 + helm-chart/templates/06-front-deployment.yaml | 2 ++ helm-chart/templates/12-config-map.yaml | 1 + helm-chart/values.yaml | 1 + 4 files changed, 5 insertions(+) diff --git a/config/configStruct.go b/config/configStruct.go index 6abd1889c..74ce9d9ac 100644 --- a/config/configStruct.go +++ b/config/configStruct.go @@ -150,6 +150,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"` + AiAssistantEnabled bool `yaml:"aiAssistantEnabled" json:"aiAssistantEnabled" default:"false"` DemoModeEnabled bool `yaml:"demoModeEnabled" json:"demoModeEnabled" default:"false"` SupportChatEnabled bool `yaml:"supportChatEnabled" json:"supportChatEnabled" default:"true"` InternetConnectivity bool `yaml:"internetConnectivity" json:"internetConnectivity" default:"true"` diff --git a/helm-chart/templates/06-front-deployment.yaml b/helm-chart/templates/06-front-deployment.yaml index d6eeca5af..57b925dba 100644 --- a/helm-chart/templates/06-front-deployment.yaml +++ b/helm-chart/templates/06-front-deployment.yaml @@ -66,6 +66,8 @@ spec: {{- else -}} {{ .Values.cloudLicenseEnabled }} {{- end }}' + - name: 'REACT_APP_AI_ASSISTANT_ENABLED' + value: '{{ .Values.aiAssistantEnabled | ternary "true" "false" }}' - name: REACT_APP_SUPPORT_CHAT_ENABLED value: '{{ and .Values.supportChatEnabled .Values.internetConnectivity | ternary "true" "false" }}' - name: REACT_APP_DISSECTORS_UPDATING_ENABLED diff --git a/helm-chart/templates/12-config-map.yaml b/helm-chart/templates/12-config-map.yaml index cd5745344..175a1b03b 100644 --- a/helm-chart/templates/12-config-map.yaml +++ b/helm-chart/templates/12-config-map.yaml @@ -56,6 +56,7 @@ data: {{- else -}} {{ .Values.cloudLicenseEnabled }} {{- end }}' + AI_ASSISTANT_ENABLED: '{{ .Values.aiAssistantEnabled | ternary "true" "false" }}' DUPLICATE_TIMEFRAME: '{{ .Values.tap.misc.duplicateTimeframe }}' ENABLED_DISSECTORS: '{{ gt (len .Values.tap.enabledDissectors) 0 | ternary (join "," .Values.tap.enabledDissectors) "" }}' CUSTOM_MACROS: '{{ toJson .Values.tap.customMacros }}' diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 900141b40..57328c826 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -228,6 +228,7 @@ dumpLogs: false headless: false license: "" cloudLicenseEnabled: true +aiAssistantEnabled: false supportChatEnabled: true internetConnectivity: true scripting: