Skip to content

Commit

Permalink
✨ Add DisableCgroupIdResolution field to MiscConfig struct
Browse files Browse the repository at this point in the history
  • Loading branch information
mertyildiran committed May 25, 2024
1 parent af2086a commit c2b7302
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/configStructs/tapConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ type MiscConfig struct {
TrafficSampleRate int `yaml:"trafficSampleRate" json:"trafficSampleRate" default:"100"`
TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"`
TcpStreamChannelTimeoutShow bool `yaml:"tcpStreamChannelTimeoutShow" json:"tcpStreamChannelTimeoutShow" default:"false"`
DisableCgroupIdResolution bool `yaml:"disableCgroupIdResolution" json:"disableCgroupIdResolution" default:"false"`
}

type TapConfig struct {
Expand Down
3 changes: 3 additions & 0 deletions helm-chart/templates/09-worker-daemon-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ spec:
{{- if .Values.tap.kernelModule.enabled }}
- -kernel-module
{{- end }}
{{- if .Values.tap.misc.disableCgroupIdResolution }}
- -disable-cgroup-id-resolution
{{- end }}
{{- if .Values.tap.debug }}
- -debug
- -dumptracer
Expand Down
2 changes: 2 additions & 0 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ tap:
trafficSampleRate: 100
tcpStreamChannelTimeoutMs: 10000
tcpStreamChannelTimeoutShow: false
disableCgroupIdResolution: false
logs:
file: ""
grep: ""
kube:
configPath: ""
context: ""
Expand Down
7 changes: 4 additions & 3 deletions manifests/complete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ rules:
- extensions
- apps
resources:
- nodes
- pods
- services
- endpoints
Expand Down Expand Up @@ -600,12 +601,12 @@ spec:
- name: lib-modules
hostPath:
path: /lib/modules
- name: data
emptyDir:
sizeLimit: 500Mi
- hostPath:
path: /etc/os-release
name: os-release
- name: data
emptyDir:
sizeLimit: 500Mi
---
# Source: kubeshark/templates/04-hub-deployment.yaml
apiVersion: apps/v1
Expand Down

0 comments on commit c2b7302

Please sign in to comment.