mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-27 16:50:02 +00:00
Template the -staletimeout
flag (#1610)
* Template the `-staletimeout` flag * Fix
This commit is contained in:
parent
13dd178334
commit
0a0b0cde36
@ -182,6 +182,7 @@ type MiscConfig struct {
|
|||||||
ResolutionStrategy string `yaml:"resolutionStrategy" json:"resolutionStrategy" default:"auto"`
|
ResolutionStrategy string `yaml:"resolutionStrategy" json:"resolutionStrategy" default:"auto"`
|
||||||
DuplicateTimeframe string `yaml:"duplicateTimeframe" json:"duplicateTimeframe" default:"200ms"`
|
DuplicateTimeframe string `yaml:"duplicateTimeframe" json:"duplicateTimeframe" default:"200ms"`
|
||||||
DetectDuplicates bool `yaml:"detectDuplicates" json:"detectDuplicates" default:"false"`
|
DetectDuplicates bool `yaml:"detectDuplicates" json:"detectDuplicates" default:"false"`
|
||||||
|
StaleTimeoutSeconds int `yaml:"staleTimeoutSeconds" json:"staleTimeoutSeconds" default:"30"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TapConfig struct {
|
type TapConfig struct {
|
||||||
|
@ -73,6 +73,8 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
- -resolution-strategy
|
- -resolution-strategy
|
||||||
- '{{ .Values.tap.misc.resolutionStrategy }}'
|
- '{{ .Values.tap.misc.resolutionStrategy }}'
|
||||||
|
- -staletimeout
|
||||||
|
- {{ .Values.tap.misc.staleTimeoutSeconds }}
|
||||||
{{- if .Values.tap.debug }}
|
{{- if .Values.tap.debug }}
|
||||||
- -debug
|
- -debug
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -149,6 +149,7 @@ tap:
|
|||||||
resolutionStrategy: auto
|
resolutionStrategy: auto
|
||||||
duplicateTimeframe: 200ms
|
duplicateTimeframe: 200ms
|
||||||
detectDuplicates: false
|
detectDuplicates: false
|
||||||
|
staleTimeoutSeconds: 30
|
||||||
logs:
|
logs:
|
||||||
file: ""
|
file: ""
|
||||||
grep: ""
|
grep: ""
|
||||||
|
@ -488,6 +488,8 @@ spec:
|
|||||||
- -disable-ebpf
|
- -disable-ebpf
|
||||||
- -resolution-strategy
|
- -resolution-strategy
|
||||||
- 'auto'
|
- 'auto'
|
||||||
|
- -staletimeout
|
||||||
|
- '30'
|
||||||
image: 'docker.io/kubeshark/worker:v52.3.82'
|
image: 'docker.io/kubeshark/worker:v52.3.82'
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
name: sniffer
|
name: sniffer
|
||||||
|
Loading…
Reference in New Issue
Block a user