mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #26504 from nowprovision/patch-1
Automatic merge from submit-queue Fix error handling in endpoint controller
This commit is contained in:
commit
464eff2bf2
@ -273,6 +273,7 @@ func (e *EndpointController) deletePod(obj interface{}) {
|
||||
podKey, err := keyFunc(obj)
|
||||
if err != nil {
|
||||
glog.Errorf("Couldn't get key for object %+v: %v", obj, err)
|
||||
return
|
||||
}
|
||||
glog.Infof("Pod %q was deleted but we don't have a record of its final state, so it will take up to %v before it will be removed from all endpoint records.", podKey, FullServiceResyncPeriod)
|
||||
|
||||
@ -284,6 +285,7 @@ func (e *EndpointController) enqueueService(obj interface{}) {
|
||||
key, err := keyFunc(obj)
|
||||
if err != nil {
|
||||
glog.Errorf("Couldn't get key for object %+v: %v", obj, err)
|
||||
return
|
||||
}
|
||||
|
||||
e.queue.Add(key)
|
||||
|
Loading…
Reference in New Issue
Block a user