mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Add pod information to the log
This commit is contained in:
parent
d59d10762f
commit
53671ffcd2
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user