How do comments work in templates, and which kind ends up in the manifest?
BeginnerConceptTemplating: Go Templates & Sprig
Answer
{{/* This is a template comment */}}is removed during rendering (use{{- /* ... */}}to also trim whitespace).# This is a YAML commentstays in the rendered output and is visible inhelm get manifest.
Use template comments to document helper parameters and YAML comments only when the reader of the rendered manifest benefits. Never put secrets or internal notes in YAML comments.
More on Templating: Go Templates & Sprig
What template language does Helm use?BeginnerWhat does the dot (`.`) mean in a Helm template?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?Beginner