Skip to content

Commit

Permalink
fix: improve error message
Browse files Browse the repository at this point in the history
when the controller is set `templateReferencing: Secure`

Signed-off-by: mikutas <23391543+mikutas@users.noreply.github.com>
  • Loading branch information
mikutas committed Mar 30, 2022
1 parent 5598b8c commit 38ed11d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3535,7 +3535,7 @@ func (woc *wfOperationCtx) setStoredWfSpec() error {
return err
}
if mergedWf.Spec.String() != woc.wf.Status.StoredWorkflowSpec.String() {
return fmt.Errorf("workflowTemplateRef reference may not change during execution when the controller is in reference mode")
return fmt.Errorf("WorkflowSpec may not change during execution when the controller is set `templateReferencing: Secure`")
}
}
return nil
Expand Down

0 comments on commit 38ed11d

Please sign in to comment.