From 6c1044dfb9e583ffe8f67b45fa9df635be517982 Mon Sep 17 00:00:00 2001 From: sat0ken <15720506+sat0ken@users.noreply.github.com> Date: Sat, 8 Feb 2025 10:11:54 +0900 Subject: [PATCH] remove args from TracingPolicy Signed-off-by: sat0ken <15720506+sat0ken@users.noreply.github.com> --- tests/e2e/tests/kprobe/kprobe_test.go | 45 +-------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/tests/e2e/tests/kprobe/kprobe_test.go b/tests/e2e/tests/kprobe/kprobe_test.go index 1b71fe49503..d1c977ea88d 100644 --- a/tests/e2e/tests/kprobe/kprobe_test.go +++ b/tests/e2e/tests/kprobe/kprobe_test.go @@ -122,58 +122,15 @@ func TestKprobeTracingPolicy(t *testing.T) { } const kprobeReadWritePolicy = ` -apiVersion: cilium.io/v1alpha1 -kind: TracingPolicyNamespaced +apiVersion: cilium.io/v1alpha1kind: TracingPolicyNamespaced metadata: name: "sys-read-write" spec: kprobes: - # write system call tracing - call: "sys_write" syscall: true - args: - - index: 0 - type: "int" - - index: 1 - type: "char_buf" - sizeArgIndex: 3 - - index: 2 - type: "size_t" - selectors: - - matchPIDs: - - operator: NotIn - followForks: true - isNamespacePID: true - values: - - 1 - matchArgs: - - index: 0 - operator: "Equal" - values: - - "1" - # read system call tracing - call: "sys_read" syscall: true - args: - - index: 0 - type: "int" - - index: 1 - type: "char_buf" - sizeArgIndex: 3 - - index: 2 - type: "size_t" - selectors: - - matchPIDs: - - operator: NotIn - followForks: true - isNamespacePID: true - values: - - 1 - matchArgs: - - index: 0 - operator: "Equal" - values: - - "0" ` const ubuntuWritePod = `