mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Propagate syncPod error as event to upper layer.
This commit is contained in:
parent
ebb448dff0
commit
d38613777b
@ -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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user