<p>I want to put the following CRD into helm chart, but it contains go raw template. How to make helm not translate <code>{{</code> and <code>}}</code> inside <code>rawTemplate</code>. Thanks for your response.
<a href="https://github.com/kubeflow/katib/blob/master/examples/random-example.yaml" rel="nofollow noreferrer">https://github.com/kubeflow/katib/blob/master/examples/random-example.yaml</a></p>

<pre><code>apiVersion: "kubeflow.org/v1alpha1"
kind: StudyJob
metadata:
  namespace: katib
  labels:
    controller-tools.k8s.io: "1.0"
  name: random-example
spec:
 studyName: random-example
 owner: crd
 optimizationtype: maximize
 objectivevaluename: Validation-accuracy
 optimizationgoal: 0.99
 requestcount: 4
 metricsnames:
   - accuracy
 workerSpec:
   goTemplate:
    rawTemplate: |-
      apiVersion: batch/v1
      kind: Job
      metadata:
        name: {{.WorkerId}}
        namespace: katib
      spec:
        template:
          spec:
            containers:
            - name: {{.WorkerId}}
              image: katib/mxnet-mnist-example
              command:
              - "python"
              - "/mxnet/example/image-classification/train_mnist.py"
              - "--batch-size=64"
              {{- with .HyperParameters}}
              {{- range .}}
              - "{{.Name}}={{.Value}}"
              {{- end}}
              {{- end}}
            restartPolicy: Never
</code></pre>

<p>In the Go template language, the expression</p>

<pre><code>{{ "{{" }}
</code></pre>

<p>will expand to two open curly braces, for cases when you need to use Go template syntax to generate documents in Go template syntax; for example</p>

<pre><code>{{ "{{" }}- if .Values.foo }}
- name: FOO
  value: {{ "{{" }} .Values.foo }}
{{ "{{" }}- end }}
</code></pre>

<p>(In a Kubernetes Helm context where you're using this syntax to generate YAML, be extra careful with how whitespace is handled; consider using <code>helm template</code> to dump out what gets generated.)</p>
