fix: issue with cron workflows not working and updated workflow executions to include the version of the workflow template they ran.

This commit is contained in:
Andrey Melnikov
2020-04-10 12:04:12 -07:00
parent 2a77d8fdd8
commit bfb65dd1ad
4 changed files with 83 additions and 12 deletions

View File

@@ -51,7 +51,13 @@ func (c *Client) UpdateCronWorkflow(namespace string, name string, cronWorkflow
argoCronWorkflow.Spec.SuccessfulJobsHistoryLimit = cronWorkflow.SuccessfulJobsHistoryLimit
argoCronWorkflow.Spec.FailedJobsHistoryLimit = cronWorkflow.FailedJobsHistoryLimit
//UX prevents multiple workflows
workflows, err := UnmarshalWorkflows([]byte(workflowTemplate.Manifest), true)
manifestBytes, err := workflowTemplate.GetWorkflowManifestBytes()
if err != nil {
return nil, err
}
workflows, err := UnmarshalWorkflows(manifestBytes, true)
if err != nil {
log.WithFields(log.Fields{
"Namespace": namespace,