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