mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #111239 from HecarimV/fix-22071914
fix: add pod info to the error log
This commit is contained in:
commit
6a71632f65
@ -110,7 +110,7 @@ func (hr *handlerRunner) runHTTPHandler(pod *v1.Pod, container *v1.Container, ha
|
|||||||
if len(host) == 0 {
|
if len(host) == 0 {
|
||||||
status, err := hr.containerManager.GetPodStatus(pod.UID, pod.Name, pod.Namespace)
|
status, err := hr.containerManager.GetPodStatus(pod.UID, pod.Name, pod.Namespace)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.ErrorS(err, "Unable to get pod info, event handlers may be invalid.")
|
klog.ErrorS(err, "Unable to get pod info, event handlers may be invalid.", "pod", klog.KObj(pod))
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if len(status.IPs) == 0 {
|
if len(status.IPs) == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user