You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes #1293 : "Argo should provide a (limited) set of functions available in templates to support basic tasks like string modification."
Argo's text placeholders are limited and is not flexible enough .
Even with the current very limited placeholder support, it's impossible to call some programs that use go format templates (e.g. docker) since their templates clash with Argo syntax.
I have experience with many custom text-based templating languages and all of them were painful or impossible to use for some cases.
The solution is to use structural templates. There are many advantages of structural templates over text-based templates:
Templating system is very easy to extend.
No need to reinvent the wheel and write a complicated fragile parser that's still going to break.
Templates do not conflict with any verbatim texts.
With structural templates we can even support multiple templating engines.
Structural templates utilize the language that Argo workflows already use - YAML.
Here is a pretty complex example that uses concat and substring to construct the full image name out of the base image name and the shortened revision:
Fixes #1293 : "Argo should provide a (limited) set of functions available in templates to support basic tasks like string modification."
Argo's text placeholders are limited and is not flexible enough .
Even with the current very limited placeholder support, it's impossible to call some programs that use go format templates (e.g. docker) since their templates clash with Argo syntax.
I have experience with many custom text-based templating languages and all of them were painful or impossible to use for some cases.
The solution is to use structural templates. There are many advantages of structural templates over text-based templates:
With structural templates we can even support multiple templating engines.
Structural templates utilize the language that Argo workflows already use - YAML.
Here is a pretty complex example that uses
concat
andsubstring
to construct the full image name out of the base image name and the shortened revision:P.S.
{inputValue: source-image}
is the structural equivalent of"{{inputs.parameters.source-image}}"
.Here is an example of structural templating in a component/template definition: https://github.com/kubeflow/pipelines/blob/5043ec78afc63506ce70fca01d2936928cb0fedb/components/gcp/automl/create_dataset_for_tables/component.yaml#L109
The text was updated successfully, but these errors were encountered: