|
@@ -7,7 +7,7 @@ import (
|
|
|
)
|
|
|
|
|
|
const workflowTemplateTpl = `
|
|
|
-[[- $workflowTemplateName := .name -]]
|
|
|
+[[- $workflowTemplateName := .real_workflow_name -]]
|
|
|
[[- $rootChildren := .children -]]
|
|
|
|
|
|
apiVersion: argoproj.io/v1alpha1
|
|
@@ -60,6 +60,8 @@ func ParseWorkflowTemplate(name string, templateParams map[string]any) (string,
|
|
|
return "", errors.New(err.Error())
|
|
|
}
|
|
|
|
|
|
+ templateParams["real_workflow_name"] = name
|
|
|
+
|
|
|
buffer := &bytes.Buffer{}
|
|
|
err = tpl.Execute(buffer, templateParams)
|
|
|
if err != nil {
|