Truthiness and Operators in Conditions
Using eq, and, or, and not correctly.
Conditions Need Logic
A simple if checks one value, but real charts need richer tests. Helm gives you operators to compare and combine conditions cleanly.
Functions, Not Symbols
Go templates have no == operator. Comparisons are written as functions instead, with the function name first and the values after it.
{{ if eq .Values.env "prod" }}All lessons in this course
- Conditional Blocks with if and else
- Truthiness and Operators in Conditions
- Looping Over Lists and Maps with range
- Scoping a Block with with