I want to run one argo workflow in which a value is surrounded with double braces. Argo tries to resolve it but I don't want argo to resolve it.
Following is a fraction of katib studyjob workflow manifest.
workerSpec:
goTemplate:
rawTemplate: |-
apiVersion: "kubeflow.org/v1beta1"
kind: TFJob
metadata:
name: {{.WorkerID}}
namespace: kubeflow
Here argo tries to resolve {{.WorkerID}}. But I don't want argo to resolve it.
How can I do this? How can I escape "{{" and "}}"?
Using the {% raw %}
tag:
{% raw %} {{.WorkerID}} {% endraw %}
Jinja2 Reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With