[[2021-06-19_Sat]] #argo
Argo Workflowのtemplate名を、variable化することはできないらしい。
```shell-session
FATA[2021-06-19T11:47:16.058Z] Failed to submit workflow: templates.argowf-chaos.steps[0].run-chaos-pod-cpu-hog templates.expand-chaos-pod-cpu-hog.steps[0].expand-chaos-pod-cpu-hog-step templates.run-chaos-pod-cpu-hog-with-sleep.steps[0].name 'run-chaos-{{inputs.parameters.chaosType}}-with-sleep-step' is invalid: name must consist of alpha-numeric characters or '-', and must start with an alpha-numeric character (e.g. My-name1-2, 123-NAME)
```
[Examples - Argo Workflows - The workflow engine for Kubernetes](https://argoproj.github.io/argo-workflows/examples/#custom-template-variable-reference) の"Custom Template Variable Reference"に記述されているように、他のテンプレート言語を使って変数展開するしかなさそう。
#cuelang を使うか。
もしかして、 [Workflow Templates - Argo Workflows - The workflow engine for Kubernetes](https://argoproj.github.io/argo-workflows/workflow-templates/#gitops-via-argo-cd) を使えば、templateのtemplateを作れるかもしれない。