code: func (rcStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
  	controller := obj.(*api.ReplicationController)
  	allErrs := validation.ValidateReplicationController(controller)
  	allErrs = append(allErrs, validation.ValidateConditionalPodTemplate(controller.Spec.Template, nil, field.NewPath("spec.template"))...)
  	return allErrs
  }
docs: // Validate validates a new replication controller.