From fe8d3636a48374b91d3170a7b9d9791b3e37d069 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Tue, 27 May 2025 13:00:06 +0200 Subject: [PATCH] feat: add enterprise edition config to assist chart - Add COMPRESSION, port, CACHE_REFRESH_INTERVAL_SECONDS, and debug environment variables for enterprise edition deployments - Use conditional logic based on enterpriseEditionLicense flag - Update REDIS_URL to support both global and local redis config with fallback using default template function This enables enterprise-specific features and improves redis configuration flexibility for the assist service. Signed-off-by: rjshrjndrn --- .../charts/assist/templates/deployment.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay/charts/assist/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/assist/templates/deployment.yaml index bb2c75577..99552f88c 100644 --- a/scripts/helmcharts/openreplay/charts/assist/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/assist/templates/deployment.yaml @@ -50,7 +50,17 @@ spec: - name: AWS_DEFAULT_REGION value: "{{ .Values.global.s3.region }}" - name: REDIS_URL - value: {{ .Values.global.redis.redisHost }} + value: {{ default .Values.global.redis.redisHost .Values.redis.redisHost }} + {{- if .Values.global.enterpriseEditionLicense }} + - name: COMPRESSION + value: "true" + - name: port + value: "9000" + - name: CACHE_REFRESH_INTERVAL_SECONDS + value: '5' + - name: debug + value: '0' + {{- end}} {{- range $key, $val := .Values.global.env }} - name: {{ $key }} value: '{{ $val }}'