Skip to content

Commit d54eb97

Browse files
committed
fix BPE if the pod is not exist
1 parent aff92be commit d54eb97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/agent/qrm-plugins/cpu/dynamicpolicy/policy_advisor_handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,13 +598,13 @@ func (p *DynamicPolicy) checkAndApplyAllPodsQuota(calculationInfo *advisorsvc.Ca
598598
for _, podDir := range podDirs {
599599
pod, podRelativePath, err := p.getPodAndRelativePath(calculationInfo.CgroupPath, podDir, podsPathMap)
600600
if err != nil {
601-
general.Warningf("getPodAndRelativePath error for pod %s: %v", pod.Name, err)
601+
general.Warningf("getPodAndRelativePath error for pod dir %s: %v", podDir, err)
602602
continue
603603
}
604604

605605
_, limit := resource.PodRequestsAndLimits(pod)
606606
if _, ok := limit[v1.ResourceCPU]; !ok {
607-
general.Warningf("no cpu limit for pod %s: %v", pod.Name, err)
607+
general.Warningf("no cpu limit for pod dir %s: %v", podDir, err)
608608
continue
609609
}
610610

0 commit comments

Comments
 (0)