code: func (cronJobStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
  	cronJob := obj.(*batch.CronJob)
  	allErrs := validation.ValidateCronJob(cronJob)
  	allErrs = append(allErrs, corevalidation.ValidateConditionalPodTemplate(&cronJob.Spec.JobTemplate.Spec.Template, nil, field.NewPath("spec.jobTemplate.spec.template"))...)
  	return allErrs
  }
docs: // Validate validates a new scheduled job.