@@ -443,53 +443,53 @@ func testContainerFieldFilters(t *testing.T, checker *checker.RPCChecker, policy
443443 runner .TestInParallel (t , runWorkload , runEventChecker )
444444}
445445
446- const containerSelectorNamePolicy = `
447- apiVersion: cilium.io/v1alpha1
448- kind: TracingPolicyNamespaced
449- metadata:
450- name: "ubuntu-container-syscalls"
451- spec:
452- containerSelector:
453- matchExpressions:
454- - key: name
455- operator: In
456- values:
457- - sidecar
458- tracepoints:
459- - subsystem: "raw_syscalls"
460- event: "sys_exit"
461- args:
462- - index: 4
463- type: "int64"
464- `
465-
466- const ubuntuPodL3 = `
467- kind: Deployment
468- apiVersion: apps/v1
469- metadata:
470- name: ubuntu-l3
471- spec:
472- replicas: 1
473- selector:
474- matchLabels:
475- app: "ubuntu-l3"
476- template:
477- metadata:
478- labels:
479- app: "ubuntu-l3"
480- spec:
481- containers:
482- - name: main
483- image: ubuntu:20.04
484- imagePullPolicy: IfNotPresent
485- command: ["bash"]
486- args: ["-c", "while sleep 1; do cat /etc/hostname; done"]
487- - name: sidecar
488- image: ubuntu:20.04
489- imagePullPolicy: IfNotPresent
490- command: ["bash"]
491- args: ["-c", "while sleep 1; do cat /etc/hostname; done"]
492- `
446+ // const containerSelectorNamePolicy = `
447+ // apiVersion: cilium.io/v1alpha1
448+ // kind: TracingPolicyNamespaced
449+ // metadata:
450+ // name: "ubuntu-container-syscalls"
451+ // spec:
452+ // containerSelector:
453+ // matchExpressions:
454+ // - key: name
455+ // operator: In
456+ // values:
457+ // - sidecar
458+ // tracepoints:
459+ // - subsystem: "raw_syscalls"
460+ // event: "sys_exit"
461+ // args:
462+ // - index: 4
463+ // type: "int64"
464+ // `
465+
466+ // const ubuntuPodL3 = `
467+ // kind: Deployment
468+ // apiVersion: apps/v1
469+ // metadata:
470+ // name: ubuntu-l3
471+ // spec:
472+ // replicas: 1
473+ // selector:
474+ // matchLabels:
475+ // app: "ubuntu-l3"
476+ // template:
477+ // metadata:
478+ // labels:
479+ // app: "ubuntu-l3"
480+ // spec:
481+ // containers:
482+ // - name: main
483+ // image: ubuntu:20.04
484+ // imagePullPolicy: IfNotPresent
485+ // command: ["bash"]
486+ // args: ["-c", "while sleep 1; do cat /etc/hostname; done"]
487+ // - name: sidecar
488+ // image: ubuntu:20.04
489+ // imagePullPolicy: IfNotPresent
490+ // command: ["bash"]
491+ // args: ["-c", "while sleep 1; do cat /etc/hostname; done"]
492+ // `
493493
494494func containerSelectorNameChecker () * checker.RPCChecker {
495495 return checker .NewRPCChecker (& containerFieldNameChecker {}, "policyfilter-container-field-checker" )
@@ -533,10 +533,10 @@ func (cfc *containerFieldNameChecker) FinalCheck(_ *slog.Logger) error {
533533 return fmt .Errorf ("container-field checker failed, had %d matches" , cfc .matches )
534534}
535535
536- func TestContainerFieldNameFilters (t * testing.T ) {
537- checker := containerSelectorNameChecker ().WithTimeLimit (30 * time .Second ).WithEventLimit (20 )
538- testContainerFieldFilters (t , checker , containerSelectorNamePolicy , "ubuntu-container-syscalls" , ubuntuPodL3 )
539- }
536+ // func TestContainerFieldNameFilters(t *testing.T) {
537+ // checker := containerSelectorNameChecker().WithTimeLimit(30 * time.Second).WithEventLimit(20)
538+ // testContainerFieldFilters(t, checker, containerSelectorNamePolicy, "ubuntu-container-syscalls", ubuntuPodL3)
539+ // }
540540
541541const containerSelectorRepoPolicy = `
542542apiVersion: cilium.io/v1alpha1
0 commit comments