mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fix pod and node names switched around in error message.
This commit is contained in:
parent
6a845c67f0
commit
af94c4e689
@ -839,7 +839,7 @@ func (dsc *DaemonSetsController) manage(ds *extensions.DaemonSet, hash string) e
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if pod.Status.Phase == v1.PodFailed {
|
if pod.Status.Phase == v1.PodFailed {
|
||||||
msg := fmt.Sprintf("Found failed daemon pod %s/%s on node %s, will try to kill it", pod.Namespace, node.Name, pod.Name)
|
msg := fmt.Sprintf("Found failed daemon pod %s/%s on node %s, will try to kill it", pod.Namespace, pod.Name, node.Name)
|
||||||
glog.V(2).Infof(msg)
|
glog.V(2).Infof(msg)
|
||||||
// Emit an event so that it's discoverable to users.
|
// Emit an event so that it's discoverable to users.
|
||||||
dsc.eventRecorder.Eventf(ds, v1.EventTypeWarning, FailedDaemonPodReason, msg)
|
dsc.eventRecorder.Eventf(ds, v1.EventTypeWarning, FailedDaemonPodReason, msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user