Skip to content

Commit

Permalink
Update pod.go
Browse files Browse the repository at this point in the history
Signed-off-by: ocichina001 <165124541+ocichina001@users.noreply.github.com>
Signed-off-by: george <xiangzhihua@gmail.com>
  • Loading branch information
ocichina001 authored and georgexiang committed Apr 15, 2024
1 parent e8f7e7c commit 9923a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/koordlet/util/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func GetPodSandboxContainerID(pod *corev1.Pod) (string, error) {
cpuSetCgroupRootDir := system.GetRootCgroupSubfsDir(system.CgroupCPUSetDir)
podCgroupDir := GetPodCgroupParentDir(pod)
podCPUSetCgroupRootDir := filepath.Join(cpuSetCgroupRootDir, podCgroupDir)
klog.V(4).Infof("************podCPUSetCgroupRootDir is %v\n",podCPUSetCgroupRootDir())
klog.V(4).Infof("************podCPUSetCgroupRootDir is %v\n",podCPUSetCgroupRootDir)

if len(pod.Status.ContainerStatuses) <= 0 {
// container not created, skip until container is created because container runtime is unknown
Expand Down

0 comments on commit 9923a3d

Please sign in to comment.