code: func ValidateHorizontalPodAutoscalerName(name string, prefix bool) (bool, string) {
  	// TODO: finally move it to pkg/api/validation and use nameIsDNSSubdomain function
  	return apivalidation.ValidateReplicationControllerName(name, prefix)
  }
docs: // ValidateHorizontalPodAutoscaler can be used to check whether the given autoscaler name is valid.
  // Prefix indicates this name will be used as part of generation, in which case trailing dashes are allowed.