mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Don't delete service endpoints when a generic error occurs
This commit is contained in:
parent
39af3cccd6
commit
b2a02140db
1 changed files with 4 additions and 0 deletions
|
|
@ -411,6 +411,10 @@ func (e *EndpointController) syncService(key string) error {
|
|||
}
|
||||
service, err := e.serviceLister.Services(namespace).Get(name)
|
||||
if err != nil {
|
||||
if !errors.IsNotFound(err) {
|
||||
return err
|
||||
}
|
||||
|
||||
// Delete the corresponding endpoint, as the service has been deleted.
|
||||
// TODO: Please note that this will delete an endpoint when a
|
||||
// service is deleted. However, if we're down at the time when
|
||||
|
|
|
|||
Loading…
Reference in a new issue