Add Bpf field to TapConfig struct

This commit is contained in:
M. Mert Yildiran 2024-06-12 04:02:36 +03:00
parent 067875d544
commit f43a61f891
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
3 changed files with 6 additions and 0 deletions

View File

@ -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"`

View File

@ -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 }}

View File

@ -18,6 +18,7 @@ tap:
host: 127.0.0.1
regex: .*
namespaces: []
bpf: ""
release:
repo: https://helm.kubeshark.co
name: kubeshark