mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #3166 from dchen1107/pd
Propagate syncPod error as event to upper layer.
This commit is contained in:
commit
0155ede0c2
@ -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