Open pivotaljohn opened 3 years ago
As per the documentation in https://carvel.dev/ytt/docs/latest/lang-ref-ytt-overlay/#overlaymatch ytt
should behave the same way for documents and arrays
Labeling this issue as important-longterm
as it's a bug that currently provides an unexpected behavior.
What steps did you take:
What happened:
https://kubernetes.slack.com/archives/CH8KCCKA5/p1613490488283300?thread_ts=1613471663.281200&cid=CH8KCCKA5
What did you expect:
To behave identically to:
It's particularly surprising that this works for the array, but not the document.
Anything else you would like to add:
As a matter of practical use, there's a risk that the user beginning with this short-hand will select more documents than they intend. Seems like it would be worth noting this in documentation/examples that illustrate use of this type of parameter on documents.
Environment:
ytt --version
): 0.31.0/etc/os-release
): n/a