code: func (c *clientWrapper) GetEndpoints(namespace, name string) (*corev1.Endpoints, bool, error) {
  	if !c.isWatchedNamespace(namespace) {
  		return nil, false, fmt.Errorf("failed to get endpoints %s/%s: namespace is not within watched namespaces", namespace, name)
  	}
  
  	endpoint, err := c.factoriesKube[c.lookupNamespace(namespace)].Core().V1().Endpoints().Lister().Endpoints(namespace).Get(name)
  	exist, err := translateNotFoundError(err)
  	return endpoint, exist, err
  }
docs: // GetEndpoints returns the named endpoints from the given namespace.