code: func ValidateStatefulSetName(name string, prefix bool) []string {
  	// TODO: Validate that there's name for the suffix inserted by the pods.
  	// Currently this is just "-index". In the future we may allow a user
  	// specified list of suffixes and we need  to validate the longest one.
  	return apimachineryvalidation.NameIsDNSSubdomain(name, prefix)
  }
docs: // ValidateStatefulSetName can be used to check whether the given StatefulSet name is valid.
  // Prefix indicates this name will be used as part of generation, in which case
  // trailing dashes are allowed.