Merge pull request #3166 from dchen1107/pd
Propagate syncPod error as event to upper layer.
This commit is contained in:
@@ -1013,6 +1013,7 @@ func (kl *Kubelet) SyncPods(pods []api.BoundPod) error {
|
|||||||
err := kl.syncPod(pod, dockerContainers)
|
err := kl.syncPod(pod, dockerContainers)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Error syncing pod, skipping: %v", err)
|
glog.Errorf("Error syncing pod, skipping: %v", err)
|
||||||
|
record.Eventf(pod, "", "failedSync", "Error syncing pod, skipping: %v", err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user