Skip to content

Commit

Permalink
Merge pull request #56 from kubescape/filter-by-node
Browse files Browse the repository at this point in the history
filter by node name
  • Loading branch information
David Wertenteil authored Apr 23, 2023
2 parents 93a3e13 + 7d76649 commit 72a8982
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/conthandler/container_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ func (containerWatcher *ContainerWatcher) StartWatchedOnContainers(containerEven
continue
}

if pod.Spec.NodeName != containerWatcher.nodeName {
continue
}

switch event.Type {
case watch.Modified:
for i := range pod.Status.ContainerStatuses {
Expand Down

0 comments on commit 72a8982

Please sign in to comment.