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 {
 | 
						for i := range s {
 | 
				
			||||||
		k2, err := GetPodKey(s[i].Pod)
 | 
							k2, err := GetPodKey(s[i].Pod)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			klog.ErrorS(err, "Cannot get pod key")
 | 
								klog.ErrorS(err, "Cannot get pod key", "pod", klog.KObj(s[i].Pod))
 | 
				
			||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if k == k2 {
 | 
							if k == k2 {
 | 
				
			||||||
@@ -591,7 +591,7 @@ func (n *NodeInfo) RemovePod(pod *v1.Pod) error {
 | 
				
			|||||||
	for i := range n.Pods {
 | 
						for i := range n.Pods {
 | 
				
			||||||
		k2, err := GetPodKey(n.Pods[i].Pod)
 | 
							k2, err := GetPodKey(n.Pods[i].Pod)
 | 
				
			||||||
		if err != nil {
 | 
							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
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if k == k2 {
 | 
							if k == k2 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user