chore: codacy fixes

This commit is contained in:
Andrey Melnikov 2021-03-03 12:18:09 -08:00
parent d6a2e98fc8
commit 52e4117ab4
2 changed files with 3 additions and 3 deletions

View File

@ -408,7 +408,7 @@ func (c *Client) injectAutomatedFields(namespace string, wf *wfv1.Workflow, opts
template.Metadata.Labels = make(map[string]string)
}
template.Metadata.Labels["onepanel.io/entity-type"] = "Workflow"
template.Metadata.Labels["onepanel.io/entity-uid"] = opts.WorkflowTemplateUid
template.Metadata.Labels["onepanel.io/entity-uid"] = opts.WorkflowTemplateUID
}
}
@ -893,7 +893,7 @@ func (c *Client) CreateWorkflowExecution(namespace string, workflow *WorkflowExe
return nil, err
}
opts.GenerateName = nameUID + "-"
opts.WorkflowTemplateUid = workflowTemplate.UID
opts.WorkflowTemplateUID = workflowTemplate.UID
opts.Labels[workflowTemplateUIDLabelKey] = workflowTemplate.UID
opts.Labels[workflowTemplateVersionLabelKey] = fmt.Sprint(workflowTemplate.Version)

View File

@ -39,7 +39,7 @@ type WorkflowExecutionOptions struct {
Labels map[string]string
ListOptions *ListOptions
PodGCStrategy *PodGCStrategy
WorkflowTemplateUid string
WorkflowTemplateUID string
}
// WorkflowExecutionStatistic is a record keeping track of what happened to a workflow execution