Skip to content

merge/override results in duplicate keys #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dinurp opened this issue Dec 22, 2024 · 0 comments
Open

merge/override results in duplicate keys #48

dinurp opened this issue Dec 22, 2024 · 0 comments

Comments

@dinurp
Copy link

dinurp commented Dec 22, 2024

Merge/Overriding results in duplicate keys

Input Yaml

templates:
  default: &default
    labels:
      sync: everyday
charts:
  - name: test
    <<: *default
    chart: test
    labels:
      sync: thur

from: roboll/helmfile#657

with yj -yy results in

Output Yaml

templates:
  default:
    labels:
      sync: everyday
charts:
  - name: test
    labels:
      sync: everyday
    chart: test
    labels:
      sync: thur

Note that the key labels/sync is duplicate; it should have overwritten the original value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant