mirror of
https://github.com/onepanelio/onepanel.git
synced 2024-08-21 00:00:34 +08:00
chore: codacy fixes
This commit is contained in:
parent
d6a2e98fc8
commit
52e4117ab4
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user