You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
element - current element in the innermost loop in nested foreach
elementIndex - index of the element of the outer loop ( elementIndex0 ) and the inner loop ( elementIndex1 ) and so on..
however it does not reference that you can refer to the outer loop element as {{ element0 }} or that the inner loop element can be referenced as {{ element1 }} and so on.
It would be very helpful to document this so users of nested foreach's dont have to rely on anti patterns like assigning the outer loop element to some context variable and then referencing it in the inner loop.
Description
The current documentation in nested foreach talks about
however it does not reference that you can refer to the outer loop element as {{ element0 }} or that the inner loop element can be referenced as {{ element1 }} and so on.
It would be very helpful to document this so users of nested foreach's dont have to rely on anti patterns like assigning the outer loop element to some context variable and then referencing it in the inner loop.
Slack discussion
https://kubernetes.slack.com/archives/C032MM2CH7X/p1738808504370699
The text was updated successfully, but these errors were encountered: