<p>I am new to kubernetes and helm.
I started using helm and I have the follwoing snippet:</p>

<pre><code>{{- $image := printf "%s/%s:%s" $.Values.global.repository $.Values.global.images.xxx.image $.Values.global.images.xxx.tag -}}
apiVersion: v1
kind: Pod
metadata:
  name: xxxx-test-ready
  labels:
    app: xxxxx-test
    app.kubernetes.io/name: xxxxx-test
    helm.sh/chart: authsvc
    release: {{ $.Release.Name }}
    app.kubernetes.io/instance: {{ $.Release.Name }}
    app.kubernetes.io/managed-by: {{ $.Release.Service }}
</code></pre>

<p>My issue is here:</p>

<pre><code>  {{- $image := printf "%s/%s:%s" $.Values.global.repository $.Values.global.images.xxx.image $.Values.global.images.xxx.tag -}}
</code></pre>

<p>I think I understand what it does : basically it creates the image specification and add it to a var called image for later use case. however I do not feel comfortable with this templating language and I am not even sure if it is erlang or golang. What is the best starting point to get confident with this templating language? Should I learn golang?</p>

Learner
<p>The best starting point is to read the official documentation: <a href="https://helm.sh/docs/chart_template_guide/#the-chart-template-developer-s-guide" rel="noreferrer">The Chart Template Developer’s Guide</a>, which provides an introduction to Helm’s chart templates, with emphasis on the template language.</p>

<blockquote>
  <p>While we talk about “Helm template language” as if it is Helm-specific, it is actually
  a combination of the Go template language, some extra functions, and a
  variety of wrappers to expose certain objects to the templates. Many
  resources on Go templates may be helpful as you learn about
  templating.</p>
  
  <p>Helm has over 60 available functions. Some of them are defined by the
  <a href="https://godoc.org/text/template" rel="noreferrer">Go template</a> language itself. Most of the others are part of the
  <a href="https://godoc.org/github.com/Masterminds/sprig" rel="noreferrer">Sprig template library</a>.</p>
</blockquote>

<p>Dig into the above Sprig and Go Template documentation to enhance your knowledge about chart templates.</p>
