code: func (k *k8sWatcher) updateCache() ([]*registry.Result, error) {
  	podList, err := k.registry.client.ListPods(podSelector)
  	if err != nil {
  		return nil, err
  	}
  
  	k.RLock()
  	k.RUnlock()
  
  	var results []*registry.Result
  
  	for _, pod := range podList.Items {
  		rslts := k.buildPodResults(&pod, nil)
  
  		for _, r := range rslts {
  			results = append(results, r)
  		}
  
  		k.Lock()
  		k.pods[pod.Metadata.Name] = &pod
  		k.Unlock()
  	}
  
  	return results, nil
  }
docs: // build a cache of pods when the watcher starts.