Closed fbjorn closed 4 years ago
Your assumption is just incorrect, this is behavior described in https://github.com/Lieturd/project-template#yaml-merges
The merge system would have to understand the intricate details of the identifiers in the arrays for it to know which one to choose, so it doesn't assume, instead it expects YOU to tell it which entry in the array it will merge to.
This overrides the first item
array:
- item
This adds a second item
array:
-
- item
Actually the issue was with dicts, deleting previous entries in a dict is plain YAML & assumed by Kubernetes to work in the standard (yet a bit odd) way:
key: ~
It's better to describe by a simple example: