Fix pod and node names switched around in error message.

This commit is contained in:
Dario Nieuwenhuis 2017-09-01 16:12:49 +02:00
parent 6a845c67f0
commit af94c4e689

View File

@ -839,7 +839,7 @@ func (dsc *DaemonSetsController) manage(ds *extensions.DaemonSet, hash string) e
continue
}
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)
// Emit an event so that it's discoverable to users.
dsc.eventRecorder.Eventf(ds, v1.EventTypeWarning, FailedDaemonPodReason, msg)