mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-30 16:26:19 +08:00
change order of method calls to ensure istio removal
This commit is contained in:
@@ -234,12 +234,12 @@ func (c *Client) createWorkflow(namespace string, workflowTemplateId *uint64, wf
|
||||
wf.ObjectMeta.Labels = *opts.Labels
|
||||
}
|
||||
|
||||
if err = c.injectAutomatedFields(namespace, wf, opts); err != nil {
|
||||
err = InjectExitHandlerWorkflowExecutionStatistic(wf, namespace, workflowTemplateId)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = InjectExitHandlerWorkflowExecutionStatistic(wf, namespace, workflowTemplateId)
|
||||
if err != nil {
|
||||
if err = c.injectAutomatedFields(namespace, wf, opts); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user