<p>I have below values in values.yaml file</p>

<pre><code>spec:
  teamId: "postgres"
  volume:
    size: 1Gi
  numberOfInstances: 1
  users:  # Application/Robot users
    a3s:
    - superuser
 tls:
    secretName: ""  
</code></pre>

<p>I would like to override the secretName to {{ .Release.Name }} when some condition is met and print the values.yaml file with {{ .Release.Name }} else it should print as it is 
Any suggestion please ?</p>

Neelam Sharma
<p>In values.yaml</p>

<pre><code>tls:
  secretName: "{{ if condition_check_here }} {{.Release.Name}} {{else }} othervalue {{end}}"
</code></pre>

<p>where the <code>tls.secretName</code> will be used, use like following</p>

<pre><code>{{tpl .Values.tls.secretName . }}
</code></pre>
