code: func (d *apiVersionsFromDiscovery) fetchVersions() (*metav1.APIGroup, error) {
  	// TODO(directxman12): amend the discovery interface to ask for a particular group (/apis/foo)
  	groups, err := d.client.ServerGroups()
  	if err != nil {
  		return nil, err
  	}
  
  	// Determine the preferred version on the server by first finding the custom metrics group
  	var apiGroup *metav1.APIGroup
  	for _, group := range groups.Groups {
  		if group.Name == cmint.GroupName {
  			apiGroup = &group
  			break
  		}
  	}
  
  	if apiGroup == nil {
  		return nil, fmt.Errorf("no custom metrics API (%s) registered", cmint.GroupName)
  	}
  
  	return apiGroup, nil
  }
docs: // fetchVersions fetches the versions, but doesn't try to invalidate on cache misses.