Helm Template range: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:


=Iterating over a Map=
=Iterating over a Map=
=Numeric Iteration Variable=

Revision as of 00:05, 10 October 2019

External

Internal

Overview

range provides a "for each" loop. The simples way to access the current iteration element is with {{ . }}. Variables can also be used.

Iterating over an In-Line List

Iterating over a .Values List

Iterating over a Map

Numeric Iteration Variable