Skip to content

Commit

Permalink
cgroups: skip crio-conmon container in fsscan
Browse files Browse the repository at this point in the history
Skip crio-conmon container when scanning for the cgroup of a container
in the filesystem.

Signed-off-by: Kornilios Kourtis <[email protected]>
  • Loading branch information
kkourt committed Mar 6, 2024
1 parent 6cfaf0a commit db13892
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cgroups/fsscan/fsscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ func findContainerDirectory(podpath string, containerID string) string {
}

name := dentry.Name()
// skip crio's conmon container
if strings.Contains(name, "crio-conmon") {
continue
}
if strings.Contains(name, containerID) {
return name
}
Expand Down

0 comments on commit db13892

Please sign in to comment.