Interview Prep/Helm/Templating: Go Templates & Sprig

What does the dot (`.`) mean in a Helm template?

BeginnerConceptTemplating: Go Templates & Sprig
Answer

The current scope (context). At the top of a template file it is the root object containing .Values, .Release, .Chart and so on. Inside with or range it changes to the selected value or the current element. When you include "shop.labels" . you pass the current scope to the named template, which then sees it as its own ..

All Helm questions Roadmap: Helm

More on Templating: Go Templates & Sprig