update: workflow versions are db records again to more easily store custom user manifest and parameters

This commit is contained in:
Andrey Melnikov
2020-04-22 12:18:39 -07:00
parent b380fa68e9
commit fd686a0672
20 changed files with 3329 additions and 6253 deletions

View File

@@ -365,6 +365,7 @@ func (c *Client) updateCronWorkflow(namespace string, name string, workflowTempl
if err = c.injectAutomatedFields(namespace, wf, opts); err != nil {
return nil, err
}
err = InjectExitHandlerWorkflowExecutionStatistic(wf, namespace, workflowTemplateId)
if err != nil {
return nil, err
@@ -448,6 +449,7 @@ func (c *Client) createCronWorkflow(namespace string, workflowTemplateId *uint64
if err != nil {
return nil, err
}
cwf.Spec.WorkflowSpec = wf.Spec
cwf.Spec.WorkflowMetadata = &wf.ObjectMeta