code: func KindToResource(kind unversioned.GroupVersionKind) ( /*plural*/ unversioned.GroupVersionResource /*singular*/, unversioned.GroupVersionResource) {
  	kindName := kind.Kind
  	if len(kindName) == 0 {
  		return unversioned.GroupVersionResource{}, unversioned.GroupVersionResource{}
  	}
  	singularName := strings.ToLower(kindName)
  	singular := kind.GroupVersion().WithResource(singularName)
  
  	for _, skip := range unpluralizedSuffixes {
  		if strings.HasSuffix(singularName, skip) {
  			return singular, singular
  		}
  	}
  
  	switch string(singularName[len(singularName)-1]) {
  	case "s":
  		return kind.GroupVersion().WithResource(singularName + "es"), singular
  	case "y":
  		return kind.GroupVersion().WithResource(strings.TrimSuffix(singularName, "y") + "ies"), singular
  	}
  
  	return kind.GroupVersion().WithResource(singularName + "s"), singular
  }
docs: // KindToResource converts Kind to a resource name.