From 88ea7120c493847b745a5bb461343567497d2bbb Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Wed, 12 Jun 2024 04:04:11 +0300 Subject: [PATCH] Rename `Bpf` field of `TapConfig` struct to `BpfOverride` --- config/configStructs/tapConfig.go | 2 +- helm-chart/templates/09-worker-daemon-set.yaml | 4 ++-- helm-chart/values.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 27ddfe6fd..6bf30f2c3 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -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"` diff --git a/helm-chart/templates/09-worker-daemon-set.yaml b/helm-chart/templates/09-worker-daemon-set.yaml index c9888cc54..704a486c0 100644 --- a/helm-chart/templates/09-worker-daemon-set.yaml +++ b/helm-chart/templates/09-worker-daemon-set.yaml @@ -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 diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 18c8c63fb..d2c60d69b 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -18,7 +18,7 @@ tap: host: 127.0.0.1 regex: .* namespaces: [] - bpf: "" + bpfOverride: "" release: repo: https://helm.kubeshark.co name: kubeshark