Add pod information to the log
This commit is contained in:
@@ -562,7 +562,7 @@ func removeFromSlice(s []*PodInfo, k string) []*PodInfo {
|
||||
for i := range s {
|
||||
k2, err := GetPodKey(s[i].Pod)
|
||||
if err != nil {
|
||||
klog.ErrorS(err, "Cannot get pod key")
|
||||
klog.ErrorS(err, "Cannot get pod key", "pod", klog.KObj(s[i].Pod))
|
||||
continue
|
||||
}
|
||||
if k == k2 {
|
||||
@@ -591,7 +591,7 @@ func (n *NodeInfo) RemovePod(pod *v1.Pod) error {
|
||||
for i := range n.Pods {
|
||||
k2, err := GetPodKey(n.Pods[i].Pod)
|
||||
if err != nil {
|
||||
klog.ErrorS(err, "Cannot get pod key")
|
||||
klog.ErrorS(err, "Cannot get pod key", "pod", klog.KObj(n.Pods[i].Pod))
|
||||
continue
|
||||
}
|
||||
if k == k2 {
|
||||
|
||||
Reference in New Issue
Block a user