diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index c24beb0bc..27ddfe6fd 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -163,6 +163,7 @@ type TapConfig struct { Proxy ProxyConfig `yaml:"proxy" json:"proxy"` PodRegexStr string `yaml:"regex" json:"regex" default:".*"` Namespaces []string `yaml:"namespaces" json:"namespaces" default:"[]"` + Bpf string `yaml:"bpf" json:"bpf" default:""` Release ReleaseConfig `yaml:"release" json:"release"` PersistentStorage bool `yaml:"persistentStorage" json:"persistentStorage" default:"false"` PersistentStorageStatic bool `yaml:"persistentStorageStatic" json:"persistentStorageStatic" default:"false"` diff --git a/helm-chart/templates/09-worker-daemon-set.yaml b/helm-chart/templates/09-worker-daemon-set.yaml index 87fb5b235..c9888cc54 100644 --- a/helm-chart/templates/09-worker-daemon-set.yaml +++ b/helm-chart/templates/09-worker-daemon-set.yaml @@ -54,6 +54,10 @@ spec: - -packet-capture - '{{ .Values.tap.packetCapture }}' - -unixsocket + {{- if .Values.tap.bpf }} + - -bpf + - '{{ .Values.tap.bpf }}' + {{- end }} {{- if .Values.tap.serviceMesh }} - -servicemesh {{- end }} diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index be9144a1e..18c8c63fb 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -18,6 +18,7 @@ tap: host: 127.0.0.1 regex: .* namespaces: [] + bpf: "" release: repo: https://helm.kubeshark.co name: kubeshark