mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
There is no need to split service key repeatedly
This commit is contained in:
parent
9a277fba7d
commit
53742560cd
@ -328,12 +328,6 @@ func (e *EndpointController) syncService(key string) error {
|
||||
// service is deleted. However, if we're down at the time when
|
||||
// the service is deleted, we will miss that deletion, so this
|
||||
// doesn't completely solve the problem. See #6877.
|
||||
namespace, name, err := cache.SplitMetaNamespaceKey(key)
|
||||
if err != nil {
|
||||
utilruntime.HandleError(fmt.Errorf("Need to delete endpoint with key %q, but couldn't understand the key: %v", key, err))
|
||||
// Don't retry, as the key isn't going to magically become understandable.
|
||||
return nil
|
||||
}
|
||||
err = e.client.Core().Endpoints(namespace).Delete(name, nil)
|
||||
if err != nil && !errors.IsNotFound(err) {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user