Propagate syncPod error as event to upper layer.

This commit is contained in:
Dawn Chen 2014-12-29 14:21:51 -08:00
parent ebb448dff0
commit d38613777b

View File

@ -1013,6 +1013,7 @@ func (kl *Kubelet) SyncPods(pods []api.BoundPod) error {
err := kl.syncPod(pod, dockerContainers)
if err != nil {
glog.Errorf("Error syncing pod, skipping: %v", err)
record.Eventf(pod, "", "failedSync", "Error syncing pod, skipping: %v", err)
}
})
}