From df1915cce6ae409830ca58c853742f6387f56623 Mon Sep 17 00:00:00 2001 From: Alon Girmonsky <1990761+alongir@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:33:10 -0700 Subject: [PATCH] Feature update bpf override (#1551) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔧 Set worker BPF override from config * 🔧 Disable `front` BPF override if capture is not `af_packet` * feature condition change Extend the feature visibility condition from explicitely using af_packet to not explicitly using ebpf, and therefore supporting all methods other than ebpf * reversing the logic fixing the previous comment logic as it was reversed. --------- Co-authored-by: tiptophelmet --- helm-chart/templates/06-front-deployment.yaml | 2 ++ helm-chart/templates/09-worker-daemon-set.yaml | 4 ---- helm-chart/templates/12-config-map.yaml | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/helm-chart/templates/06-front-deployment.yaml b/helm-chart/templates/06-front-deployment.yaml index 3dc93cab8..91dac0771 100644 --- a/helm-chart/templates/06-front-deployment.yaml +++ b/helm-chart/templates/06-front-deployment.yaml @@ -44,6 +44,8 @@ spec: value: '{{ .Values.tap.scriptingDisabled }}' - name: REACT_APP_TARGETED_PODS_UPDATE_DISABLED value: '{{ .Values.tap.targetedPodsUpdateDisabled }}' + - name: REACT_APP_BPF_OVERRIDE_DISABLED + value: '{{ eq .Values.tap.packetCapture "ebpf" | ternary "true" "false" }}' - name: REACT_APP_RECORDING_DISABLED value: '{{ .Values.tap.recordingDisabled }}' - name: 'REACT_APP_CLOUD_LICENSE_ENABLED' diff --git a/helm-chart/templates/09-worker-daemon-set.yaml b/helm-chart/templates/09-worker-daemon-set.yaml index 704a486c0..87fb5b235 100644 --- a/helm-chart/templates/09-worker-daemon-set.yaml +++ b/helm-chart/templates/09-worker-daemon-set.yaml @@ -54,10 +54,6 @@ spec: - -packet-capture - '{{ .Values.tap.packetCapture }}' - -unixsocket - {{- if .Values.tap.bpfOverride }} - - -bpf - - '{{ .Values.tap.bpfOverride }}' - {{- end }} {{- if .Values.tap.serviceMesh }} - -servicemesh {{- end }} diff --git a/helm-chart/templates/12-config-map.yaml b/helm-chart/templates/12-config-map.yaml index 5ccef9360..e9d0e6fe8 100644 --- a/helm-chart/templates/12-config-map.yaml +++ b/helm-chart/templates/12-config-map.yaml @@ -9,6 +9,7 @@ metadata: data: POD_REGEX: '{{ .Values.tap.regex }}' NAMESPACES: '{{ gt (len .Values.tap.namespaces) 0 | ternary (join "," .Values.tap.namespaces) "" }}' + BPF_OVERRIDE: '{{ .Values.tap.bpfOverride }}' SCRIPTING_SCRIPTS: '{}' INGRESS_ENABLED: '{{ .Values.tap.ingress.enabled }}' INGRESS_HOST: '{{ .Values.tap.ingress.host }}'