Skip to content

Commit

Permalink
fix: Reset all conditions when resubmitting (#2702)
Browse files Browse the repository at this point in the history
  • Loading branch information
simster7 committed Apr 20, 2020
1 parent 80dd96a commit ca5cdc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ func FormulateResubmitWorkflow(wf *wfv1.Workflow, memoized bool) (*wfv1.Workflow
newWF.Status.StoredTemplates[id] = tmpl
}

newWF.Status.Conditions.UpsertCondition(wfv1.WorkflowCondition{Status: metav1.ConditionFalse, Type: wfv1.WorkflowConditionCompleted})
newWF.Status.Conditions = wfv1.WorkflowConditions{{Status: metav1.ConditionFalse, Type: wfv1.WorkflowConditionCompleted}}
newWF.Status.Phase = wfv1.NodePending

return &newWF, nil
Expand Down

0 comments on commit ca5cdc4

Please sign in to comment.