code: func ValidateReplicationController(controller *core.ReplicationController) field.ErrorList {
  	allErrs := ValidateObjectMeta(&controller.ObjectMeta, true, ValidateReplicationControllerName, field.NewPath("metadata"))
  	allErrs = append(allErrs, ValidateReplicationControllerSpec(&controller.Spec, field.NewPath("spec"))...)
  	return allErrs
  }
docs: // ValidateReplicationController tests if required fields in the replication controller are set.