From 23c86be7738ffc142a782f031f24ebfbd96bf016 Mon Sep 17 00:00:00 2001 From: Serhii Ponomarenko <116438358+tiptophelmet@users.noreply.github.com> Date: Thu, 12 Mar 2026 00:36:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=82=20Control=20L4=20map=20visibility?= =?UTF-8?q?=20(helm=20value)=20(#1866)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :hammer: Add `tap.dashboard.clusterWideMapEnabled` helm value * :hammer: Add cluster-wide-map-enabled `front` env * :hammer: Add fallback value for `front` env --- config/configStruct.go | 1 + config/configStructs/tapConfig.go | 7 ++++--- helm-chart/templates/06-front-deployment.yaml | 2 ++ helm-chart/values.yaml | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/config/configStruct.go b/config/configStruct.go index 3ad0f9dee..04e463759 100644 --- a/config/configStruct.go +++ b/config/configStruct.go @@ -153,6 +153,7 @@ func CreateDefaultConfig() ConfigStruct { }, Dashboard: configStructs.DashboardConfig{ CompleteStreamingEnabled: true, + ClusterWideMapEnabled: false, }, Capture: configStructs.CaptureConfig{ Dissection: configStructs.DissectionConfig{ diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index e0b6ddfbb..508a482cb 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -202,6 +202,7 @@ type RoutingConfig struct { type DashboardConfig struct { StreamingType string `yaml:"streamingType" json:"streamingType" default:"connect-rpc"` CompleteStreamingEnabled bool `yaml:"completeStreamingEnabled" json:"completeStreamingEnabled" default:"true"` + ClusterWideMapEnabled bool `yaml:"clusterWideMapEnabled" json:"clusterWideMapEnabled" default:"false"` } type FrontRoutingConfig struct { @@ -209,9 +210,9 @@ type FrontRoutingConfig struct { } type ReleaseConfig struct { - Repo string `yaml:"repo" json:"repo" default:"https://helm.kubeshark.com"` - Name string `yaml:"name" json:"name" default:"kubeshark"` - Namespace string `yaml:"namespace" json:"namespace" default:"default"` + Repo string `yaml:"repo" json:"repo" default:"https://helm.kubeshark.com"` + Name string `yaml:"name" json:"name" default:"kubeshark"` + Namespace string `yaml:"namespace" json:"namespace" default:"default"` HelmChartPath string `yaml:"helmChartPath" json:"helmChartPath" default:""` } diff --git a/helm-chart/templates/06-front-deployment.yaml b/helm-chart/templates/06-front-deployment.yaml index b92cbe943..5a66fb0eb 100644 --- a/helm-chart/templates/06-front-deployment.yaml +++ b/helm-chart/templates/06-front-deployment.yaml @@ -92,6 +92,8 @@ spec: value: '{{ default false .Values.betaEnabled | ternary "true" "false" }}' - name: REACT_APP_DISSECTORS_UPDATING_ENABLED value: '{{ .Values.tap.liveConfigMapChangesDisabled | ternary "false" "true" }}' + - name: REACT_APP_CLUSTER_WIDE_MAP_ENABLED + value: '{{ default false (((.Values).tap).dashboard).clusterWideMapEnabled }}' - name: REACT_APP_RAW_CAPTURE_ENABLED value: '{{ .Values.tap.capture.raw.enabled | ternary "true" "false" }}' - name: REACT_APP_SENTRY_ENABLED diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 1fef2fd72..bcd24af86 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -185,6 +185,7 @@ tap: dashboard: streamingType: connect-rpc completeStreamingEnabled: true + clusterWideMapEnabled: false telemetry: enabled: true resourceGuard: