code: func (daemonSetStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
  	daemonSet := obj.(*apps.DaemonSet)
  	allErrs := validation.ValidateDaemonSet(daemonSet)
  	allErrs = append(allErrs, corevalidation.ValidateConditionalPodTemplate(&daemonSet.Spec.Template, nil, field.NewPath("spec.template"))...)
  	return allErrs
  }
docs: // Validate validates a new daemon set.