yjp hace 3 meses
padre
commit
5361db4221
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      approve_former/flow_template.go

+ 3 - 1
approve_former/flow_template.go

@@ -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 {