Deep Merge with mergeOverwrite and dict
Composing structured values programmatically.
Building Maps in Templates
Sometimes you need to assemble a map inside a template. The dict function creates one from alternating key and value pairs.
{{ $cfg := dict "level" "info" "json" true }}Why Combine Maps
You often have chart defaults plus user overrides, and you want a single combined map. That is exactly what a merge produces.
All lessons in this course
- Deep Merge with mergeOverwrite and dict
- tpl: Rendering Strings from Values
- Looping Files with range Over .Files.Glob
- fail and Custom Validation Guards