overlay/replace on a map replaces keys, not only values #946
Labels
bug
This issue describes a defect or unexpected behavior
carvel triage
This issue has not yet been triaged for relevance
What steps did you take:
I tried applying overlay/replace to all child elements' values.
What happened:
Not only the values, but their key was replaced as well (to the dummy placeholder value).
Because of this, matching
overlay.all
won't really work, as for multiple child items, this will cause a duplicate key error.What did you expect:
That only the values are replaced
Anything else you would like to add:
Using
overlay.map_key
instead ofoverlay.all
results in the same erroneous behaviour.overlay/merge
behaves as expected (does not replace key) with both matchers.Environment:
ytt --version
): 0.51.1/etc/os-release
): Windows 11 24H2 26100.3194Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: