code: func ToSet(resourceNames []corev1.ResourceName) sets.String {
  	result := sets.NewString()
  	for _, resourceName := range resourceNames {
  		result.Insert(string(resourceName))
  	}
  	return result
  }
docs: // ToSet takes a list of resource names and converts to a string set