0PricingLogin
Helm Academy · Lesson

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

  1. Piping Values Through Functions
  2. default, required, and quote
  3. String Helpers from the Sprig Library
  4. Encoding with b64enc, toYaml, and indent
← Back to Helm Academy