Skip to content

Commit

Permalink
fix: Make defaultWorkflow hooks work more than once (#11693)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joibel authored and terrytangyuan committed Sep 5, 2023
1 parent 27cd582 commit f3f06f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workflow/util/merge.go
Expand Up @@ -17,8 +17,10 @@ func MergeTo(patch, target *wfv1.Workflow) error {
}

patchHooks := patch.Spec.Hooks
// Temporarily remove hooks as they don't merge
patch.Spec.Hooks = nil
patchWfBytes, err := json.Marshal(patch)
patch.Spec.Hooks = patchHooks
if err != nil {
return err
}
Expand Down

0 comments on commit f3f06f7

Please sign in to comment.