Skip to content

Commit 4da82e6

Browse files
cakemannyfntlnz
authored andcommitted
style: touch up procfs.go
1 parent 91216a9 commit 4da82e6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/procfs/procfs.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ func FindPidByPodContainer(podUID, containerID string) (string, error) {
5454
//
5555
// EG: /kubelet.slice/kubelet-kubepods.slice/kubelet-kubepods-besteffort.slice/kubelet-kubepods-besteffort-pod18640755_cc12_4557_b96e_0f74d5b44d1d.slice/cri-containerd-66221e7d988e193822a3e8368b61ad9aeabf6b5276df76daebb7ea33bccc0b87.scope
5656
// /kubelet.slice/kubelet-kubepods.slice/kubelet-kubepods-besteffort.slice/kubelet-kubepods-besteffort-pod{POD_ID/-/_/}.slice/cri-containerd-{CONTAINER_ID}.scope
57-
// /kubepods/burstable/pod{POD_ID}/{CONTAINER_ID}
5857
//
5958
podNeedle := strings.ReplaceAll(podUID, "-", "_")
6059
if strings.Contains(root, podNeedle) && strings.Contains(root, containerID) {
@@ -69,7 +68,6 @@ func FindPidByPodContainer(podUID, containerID string) (string, error) {
6968
if strings.Contains(root, needle) {
7069
return dname, nil
7170
}
72-
7371
}
7472
}
7573
}

0 commit comments

Comments
 (0)