// PrepareStepIfNecessary Prepare the step for execution
PrepareStepIfNecessary Prepare the step for execution
// PrepareStepIfNecessary Prepare the step for execution
func PrepareStepIfNecessary(workflow *v1.Workflow, step *v1.WorkflowStep, stepSelector []int) error {
	if step != nil && !step.State.Prepared {
		err := expandStep(workflow, step, stepSelector)
		if err != nil {
			return err
		}
		err = validation.ValidateStep(step, stepSelector)
		if err != nil {
			err = shouldIgnoreValidation(workflow, step, stepSelector, err)
			if err != nil {
				return err
			}
		}
		step.State.Prepared = true
	}
	return nil
}
func PrepareStepIfNecessary ( workflow * v1 . Workflow , step * v1 . WorkflowStep , stepSelector [ ] int ) error { if step != nil && ! step . State . Prepared { err := expandStep ( workflow , step , stepSelector ) if err != nil { return err } err = validation . ValidateStep ( step , stepSelector ) if err != nil { err = shouldIgnoreValidation ( workflow , step , stepSelector , err ) if err != nil { return err } } step . State . Prepared = true } return nil }
PrepareStepIfNecessary Prepare the step for execution
PrepareStepIfNecessary Prepare the step for execution