What does `required` do?
BeginnerConceptTemplating: Go Templates & Sprig
Answer
required "message" VALUE fails rendering with your message if the value is empty:
password: {{ required "postgres.auth.password is required (use --set-string or a secrets file)" .Values.postgres.auth.password | b64enc | quote }}
The user sees Error: execution error at (shop/templates/secret.yaml:9:15): postgres.auth.password is required .... It is better than a broken deployment with an empty password; for type checks across many fields, add values.schema.json too.
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