code: func ValidatePodBinding(binding *core.Binding) field.ErrorList {
  	allErrs := field.ErrorList{}
  
  	if len(binding.Target.Kind) != 0 && binding.Target.Kind != "Node" {
  		// TODO: When validation becomes versioned, this gets more complicated.
  		allErrs = append(allErrs, field.NotSupported(field.NewPath("target", "kind"), binding.Target.Kind, []string{"Node", "<empty>"}))
  	}
  	if len(binding.Target.Name) == 0 {
  		// TODO: When validation becomes versioned, this gets more complicated.
  		allErrs = append(allErrs, field.Required(field.NewPath("target", "name"), ""))
  	}
  
  	return allErrs
  }
docs: // ValidatePodBinding tests if required fields in the pod binding are legal.