argo-python-dsl icon indicating copy to clipboard operation
argo-python-dsl copied to clipboard

Support for referencing templates from other workflow templates

Open process0 opened this issue 5 years ago • 1 comments

Argo supports referencing templates from other workflow templates. We should be able to do the same in the python DSL, ideally by two methods:

  1. A string for any WorkflowTemplate external to the python DSL
  2. A WorkflowTemplate object and method for WorkflowTemplates built with the python DSL

https://argoproj.github.io/argo/workflow-templates/#referencing-other-workflowtemplates

process0 avatar Dec 17 '20 16:12 process0

I was just looking for this feature too! I'm not sure this is possible at all using the DSL as there's no way to define more than one workflow per file in Argo AFAIK...

The best way I could think of implementing this right now is to compile the workflows and save them in Argo, so that when I put in references string references to those templates/workflows argo will recognize them. The DSL doesn't support "saving" workflows to Argo yet either, so currently the best option is via ArgoCD (the other being to manually upload them via the Argo GUI).

moshewe avatar Apr 11 '21 05:04 moshewe