From 01656b6c7844d514ff78b39ba681cde6fa1ed892 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Wed, 17 Jul 2024 08:01:26 +0300 Subject: [PATCH] Add `DUPLICATE_TIMEFRAME` field to `ConfigMap` (#1561) Co-authored-by: Alon Girmonsky <1990761+alongir@users.noreply.github.com> --- config/configStructs/tapConfig.go | 1 + helm-chart/templates/12-config-map.yaml | 1 + helm-chart/values.yaml | 1 + manifests/complete.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index a3a3f46d2..a9dcfad18 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -155,6 +155,7 @@ type MiscConfig struct { TcpStreamChannelTimeoutShow bool `yaml:"tcpStreamChannelTimeoutShow" json:"tcpStreamChannelTimeoutShow" default:"false"` ResolutionStrategy string `yaml:"resolutionStrategy" json:"resolutionStrategy" default:"auto"` Profile bool `yaml:"profile" json:"profile" default:"false"` + DuplicateTimeframe string `yaml:"duplicateTimeframe" json:"duplicateTimeframe" default:"200ms"` } type TapConfig struct { diff --git a/helm-chart/templates/12-config-map.yaml b/helm-chart/templates/12-config-map.yaml index f78c72c7d..45573ba91 100644 --- a/helm-chart/templates/12-config-map.yaml +++ b/helm-chart/templates/12-config-map.yaml @@ -39,4 +39,5 @@ data: {{- else -}} {{ .Values.cloudLicenseEnabled }} {{- end }}' + DUPLICATE_TIMEFRAME: '{{ .Values.tap.misc.duplicateTimeframe }}' diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 875518257..902c19a53 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -124,6 +124,7 @@ tap: tcpStreamChannelTimeoutShow: false resolutionStrategy: auto profile: false + duplicateTimeframe: 200ms logs: file: "" grep: "" diff --git a/manifests/complete.yaml b/manifests/complete.yaml index a1b29363a..4107c963a 100644 --- a/manifests/complete.yaml +++ b/manifests/complete.yaml @@ -246,6 +246,7 @@ data: PCAP_ERROR_TTL: '60s' TIMEZONE: ' ' CLOUD_LICENSE_ENABLED: 'true' + DUPLICATE_TIMEFRAME: '200ms' --- # Source: kubeshark/templates/02-cluster-role.yaml apiVersion: rbac.authorization.k8s.io/v1