default, required, and quote
Providing fallbacks and enforcing mandatory inputs.
Three Everyday Functions
Three functions show up in almost every chart: default for fallbacks, required for must-haves, and quote for safe strings.
Filling Gaps with default
The default function supplies a fallback when a value is empty or missing, so your template never renders a blank.
{{ .Values.replicas | default 1 }}All lessons in this course
- Piping Values Through Functions
- default, required, and quote
- String Helpers from the Sprig Library
- Encoding with b64enc, toYaml, and indent