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 ..
More on Templating: Go Templates & Sprig
What template language does Helm use?BeginnerWhat is `$` and when do you need it?IntermediateHow does whitespace control (`{{-` and `-}}`) work?BeginnerHow do `if`, `else if` and `else` evaluate truthiness?BeginnerWhat do `and`, `or`, `not`, `eq`, `ne`, `lt`, `gt` look like in Helm?BeginnerHow does `with` work, and what is its common pitfall?Intermediate