Closed Hugal31 closed 1 year ago
@Hugal31 Hi, sorry for the late reply. Just curious, do you still need help to resolve this issue or you found a workaround? Kindly let us know. Thanks
Yes, but I had to create my own overlay function. Since I was only merging on one level, this was easy:
def merge(left, right):
result = dict(left)
for k, v in dict(right).items():
result[k] = v
end
return result
end
Edit: I think using overlay for this kind of task is not doable. The overlay annotation are consumed by the first overlay application (when merging my *.values.yaml). I'll close the issue.
My goal is to have overlayed data/values that result in a dictionary of objects. Then, I apply an operation to replace missing fields in each of those sub-objects by a default object, also defined in the overlayed data/values. It works well, however I can't specify the usual overlay annotations, as
#@overlay/replace
for the arrays.I have those two files:
test.values.yaml
and test.yaml:
The result :
Expected result:
How can I achieve this?