Skip to content

Commit

Permalink
Merge pull request #459 from kubescape/feature/no-podinformer
Browse files Browse the repository at this point in the history
Replacing pod informer
  • Loading branch information
amitschendel authored Jan 16, 2025
2 parents 36c541f + d351c6d commit 5bf8303
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/containerwatcher/v1/container_watcher_private.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,14 @@ func (ch *IGContainerWatcher) startContainerCollection(ctx context.Context) erro
// Enrich events with Linux namespaces information, it is needed for per container filtering
containercollection.WithLinuxNamespaceEnrichment(),

// Get containers created with container runtimes
containercollection.WithContainerRuntimeEnrichment(ch.runtime),

// Get containers created with ebpf (works also if hostPid=false)
containercollection.WithContainerFanotifyEbpf(),

// WithTracerCollection enables the interation between the TracerCollection and ContainerCollection packages.
containercollection.WithTracerCollection(ch.tracerCollection),

// WithPodInformer uses a pod informer to get both initial containers and the stream of container events.
containercollection.WithPodInformer(ch.cfg.NodeName),
}

// Initialize the container collection
Expand Down

0 comments on commit 5bf8303

Please sign in to comment.