Skip to content

Glossary: Kubernetes Beyond the Basics

if / if not (template conditionals)

Also written: {{- if }}, {{- end }}, {{-

Template actions that include lines only when a value is true (or false). `{{-` trims whitespace before the action.

Where the book teaches it

Related terms

Template and template action