Skip to content

merge/override results in duplicate keys #48

@dinurp

Description

@dinurp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions