In offcial documentaion the description is very poor:
Merge two or more dictionaries into one, giving precedence to the dest dictionary:
$newdict := merge $dest $source1 $source2 This is a deep merge operation but not a deep copy operation. Nested objects that are merged are the same instance on both dicts. If you want a deep copy along with the merge, then use the deepCopy function along with merging...
Could you please provide example with input and output values ?
Consider we have 3 maps (or Dict) as follows:
You can represent it in helm with:
Merge
In merging dicts, keys with different values will be kept, and in the same keys cases,
dstdict takes precedence. For example, result ofmerge $dst $src1 $src2would be:or in helm syntacs:
would be:
mergeOverwrite
In mergeOverwrite, precedence would be from right to left. So we have:
would be:
or