Rename Bpf field of TapConfig struct to BpfOverride

This commit is contained in:
M. Mert Yildiran 2024-06-12 04:04:11 +03:00
parent f43a61f891
commit 88ea7120c4
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
3 changed files with 4 additions and 4 deletions

View File

@ -163,7 +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:""`
BpfOverride string `yaml:"bpfOverride" json:"bpfOverride" 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,9 +54,9 @@ spec:
- -packet-capture
- '{{ .Values.tap.packetCapture }}'
- -unixsocket
{{- if .Values.tap.bpf }}
{{- if .Values.tap.bpfOverride }}
- -bpf
- '{{ .Values.tap.bpf }}'
- '{{ .Values.tap.bpfOverride }}'
{{- end }}
{{- if .Values.tap.serviceMesh }}
- -servicemesh

View File

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