code: func NameIsDNSLabel(name string, prefix bool) []string {
  	if prefix {
  		name = maskTrailingDash(name)
  	}
  	return validation.IsDNS1123Label(name)
  }
docs: // NameIsDNSLabel is a ValidateNameFunc for names that must be a DNS 1123 label.