From 59ef0f8f80aec34f52ec04de11a567710d74e18f Mon Sep 17 00:00:00 2001 From: Serhii Ponomarenko <116438358+tiptophelmet@users.noreply.github.com> Date: Tue, 1 Apr 2025 23:08:46 +0300 Subject: [PATCH] :hammer: Add `tap.dashboard.completeStreamingEnabled` flag (#1733) --- config/configStruct.go | 3 +++ config/configStructs/tapConfig.go | 5 +++++ helm-chart/templates/06-front-deployment.yaml | 6 ++++++ helm-chart/values.yaml | 2 ++ 4 files changed, 16 insertions(+) diff --git a/config/configStruct.go b/config/configStruct.go index a911dc64c..4cd4bef31 100644 --- a/config/configStruct.go +++ b/config/configStruct.go @@ -135,6 +135,9 @@ func CreateDefaultConfig() ConfigStruct { LDAP: []uint16{389}, DIAMETER: []uint16{3868}, }, + Dashboard: configStructs.DashboardConfig{ + CompleteStreamingEnabled: true, + }, }, } } diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 1be086b04..923223cb0 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -195,6 +195,10 @@ type RoutingConfig struct { Front FrontRoutingConfig `yaml:"front" json:"front"` } +type DashboardConfig struct { + CompleteStreamingEnabled bool `yaml:"completeStreamingEnabled" json:"completeStreamingEnabled" default:"true"` +} + type FrontRoutingConfig struct { BasePath string `yaml:"basePath" json:"basePath" default:""` } @@ -320,6 +324,7 @@ type TapConfig struct { Routing RoutingConfig `yaml:"routing" json:"routing"` IPv6 bool `yaml:"ipv6" json:"ipv6" default:"true"` Debug bool `yaml:"debug" json:"debug" default:"false"` + Dashboard DashboardConfig `yaml:"dashboard" json:"dashboard"` Telemetry TelemetryConfig `yaml:"telemetry" json:"telemetry"` ResourceGuard ResourceGuardConfig `yaml:"resourceGuard" json:"resourceGuard"` Watchdog WatchdogConfig `yaml:"watchdog" json:"watchdog"` diff --git a/helm-chart/templates/06-front-deployment.yaml b/helm-chart/templates/06-front-deployment.yaml index 1644bf450..6fd699df5 100644 --- a/helm-chart/templates/06-front-deployment.yaml +++ b/helm-chart/templates/06-front-deployment.yaml @@ -36,6 +36,12 @@ spec: {{- else -}} {{ .Values.tap.auth.type }} {{- end }}' + - name: REACT_APP_COMPLETE_STREAMING_ENABLED + value: '{{- if and (hasKey .Values.tap "dashboard") (hasKey .Values.tap.dashboard "completeStreamingEnabled") -}} + {{ eq .Values.tap.dashboard.completeStreamingEnabled true | ternary "true" "false" }} + {{- else -}} + true + {{- end }}' - name: REACT_APP_AUTH_SAML_IDP_METADATA_URL value: '{{ not (eq .Values.tap.auth.saml.idpMetadataUrl "") | ternary .Values.tap.auth.saml.idpMetadataUrl " " }}' - name: REACT_APP_TIMEZONE diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 97342ca36..a898a8e58 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -136,6 +136,8 @@ tap: basePath: "" ipv6: true debug: false + dashboard: + completeStreamingEnabled: true telemetry: enabled: true resourceGuard: