Replace DisableCgroupIdResolution field with ResolutionStrategy of MiscConfig struct

This commit is contained in:
M. Mert Yildiran 2024-06-06 04:07:24 +03:00
parent a58f72ed87
commit d6143f5a6a
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
4 changed files with 6 additions and 5 deletions

View File

@ -154,7 +154,7 @@ type MiscConfig struct {
TrafficSampleRate int `yaml:"trafficSampleRate" json:"trafficSampleRate" default:"100"` TrafficSampleRate int `yaml:"trafficSampleRate" json:"trafficSampleRate" default:"100"`
TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"` TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"`
TcpStreamChannelTimeoutShow bool `yaml:"tcpStreamChannelTimeoutShow" json:"tcpStreamChannelTimeoutShow" default:"false"` TcpStreamChannelTimeoutShow bool `yaml:"tcpStreamChannelTimeoutShow" json:"tcpStreamChannelTimeoutShow" default:"false"`
DisableCgroupIdResolution bool `yaml:"disableCgroupIdResolution" json:"disableCgroupIdResolution" default:"false"` ResolutionStrategy string `yaml:"resolutionStrategy" json:"resolutionStrategy" default:"auto"`
} }
type TapConfig struct { type TapConfig struct {

View File

@ -65,9 +65,8 @@ spec:
{{- if ne .Values.tap.packetCapture "ebpf" }} {{- if ne .Values.tap.packetCapture "ebpf" }}
- -disable-ebpf - -disable-ebpf
{{- end }} {{- end }}
{{- if .Values.tap.misc.disableCgroupIdResolution }} - -resolution-strategy
- -disable-cgroup-id-resolution - '{{ .Values.tap.misc.resolutionStrategy }}'
{{- end }}
{{- if .Values.tap.debug }} {{- if .Values.tap.debug }}
- -debug - -debug
- -dumptracer - -dumptracer

View File

@ -122,7 +122,7 @@ tap:
trafficSampleRate: 100 trafficSampleRate: 100
tcpStreamChannelTimeoutMs: 10000 tcpStreamChannelTimeoutMs: 10000
tcpStreamChannelTimeoutShow: false tcpStreamChannelTimeoutShow: false
disableCgroupIdResolution: false resolutionStrategy: auto
logs: logs:
file: "" file: ""
grep: "" grep: ""

View File

@ -452,6 +452,8 @@ spec:
- -procfs - -procfs
- /hostproc - /hostproc
- -disable-ebpf - -disable-ebpf
- -resolution-strategy
- 'auto'
image: 'docker.io/kubeshark/worker:v52.3.62' image: 'docker.io/kubeshark/worker:v52.3.62'
imagePullPolicy: Always imagePullPolicy: Always
name: sniffer name: sniffer