glog.V(4).Infof("Processing endpoint deletion for %s/%s, cluster %s",cachedService.lastState.Namespace,cachedService.lastState.Name,clusterName)
varerrerror
cachedService.rwlock.Lock()
defercachedService.rwlock.Unlock()
_,ok:=cachedService.endpointMap[clusterName]
// TODO remove ok checking? if service controller is restarted, then endpointMap for the cluster does not exist
// need to query dns info from dnsprovider and make sure of if deletion is needed
ifok{
// endpoints lost, clean dns record
glog.V(4).Infof("Cached endpoint was found for %s/%s, cluster %s, removing",cachedService.lastState.Namespace,cachedService.lastState.Name,clusterName)