<p>I’m trying to change the value of a variable if another variable it set by combining the two with a dash in the middle, I’m not sure of the syntax to do this, I’m thinking of somethings like:</p>

<pre><code>{{- $serviceNamespace := .Values.serviceNamespace -}}
{{- $serviceTag := .Values.serviceTag -}}
{{- if $serviceTag}}
{{- $serviceNamespace := .Values.serviceNamespace  "-" .Values.serviceTag -}}
{{- end}}
</code></pre>

<p>Is this correct? if <code>serviceNamespace</code> was <code>hello</code> and <code>serviceTag</code> was <code>1.0.0</code> would I end up with <code>serviceNamespace</code> being <code>hello-1.0.0</code>?</p>

<p>For concatenation just use printf:</p>

<pre><code>{{-  $serviceNamespace := printf "%s-%s" .Values.serviceNamespace .Values.serviceTag -}}
</code></pre>
