Template the -staletimeout flag (#1610)

* Template the `-staletimeout` flag

* Fix
This commit is contained in:
M. Mert Yildiran 2024-09-18 22:02:15 +03:00 committed by GitHub
parent 13dd178334
commit 0a0b0cde36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 0 deletions

View File

@ -182,6 +182,7 @@ type MiscConfig struct {
ResolutionStrategy string `yaml:"resolutionStrategy" json:"resolutionStrategy" default:"auto"`
DuplicateTimeframe string `yaml:"duplicateTimeframe" json:"duplicateTimeframe" default:"200ms"`
DetectDuplicates bool `yaml:"detectDuplicates" json:"detectDuplicates" default:"false"`
StaleTimeoutSeconds int `yaml:"staleTimeoutSeconds" json:"staleTimeoutSeconds" default:"30"`
}
type TapConfig struct {

View File

@ -73,6 +73,8 @@ spec:
{{- end }}
- -resolution-strategy
- '{{ .Values.tap.misc.resolutionStrategy }}'
- -staletimeout
- {{ .Values.tap.misc.staleTimeoutSeconds }}
{{- if .Values.tap.debug }}
- -debug
{{- end }}

View File

@ -149,6 +149,7 @@ tap:
resolutionStrategy: auto
duplicateTimeframe: 200ms
detectDuplicates: false
staleTimeoutSeconds: 30
logs:
file: ""
grep: ""

View File

@ -488,6 +488,8 @@ spec:
- -disable-ebpf
- -resolution-strategy
- 'auto'
- -staletimeout
- '30'
image: 'docker.io/kubeshark/worker:v52.3.82'
imagePullPolicy: Always
name: sniffer