thing: - item1 - {{ foo | toJson }} # <-- is not going to do what you expect
thing: - alpha - - alpha1 - alpha2
labels: - mylabel - {{ extraLabels | indent 4 }} # toJson doesn't work here.
But I meant this which would merge the lists.
labels: - mylabel {{ extraLabels | indent 4 }} # toJson doesn't work here.