Skip to content

Commit

Permalink
remove args from TracingPolicy
Browse files Browse the repository at this point in the history
Signed-off-by: sat0ken <[email protected]>
  • Loading branch information
sat0ken committed Feb 8, 2025
1 parent 9dadd59 commit 6c1044d
Showing 1 changed file with 1 addition and 44 deletions.
45 changes: 1 addition & 44 deletions tests/e2e/tests/kprobe/kprobe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `
Expand Down

0 comments on commit 6c1044d

Please sign in to comment.