You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was tryin to merge two configs, one docker-compose and docker-compose.swarm override. Swarm do not understand object for depends_on, answer should be only a list.
#docker-composeservices:
service1:
# some other argsdepends_on:
service2:
condition: healthy#docer-compose.swarm just to override depends_onservices:
service1:
depends_on:
- service2
First of all it will be really useful to show what can't be merged.
Second, Dict and Map couldn't be merged, but that's not what I need, and there is no way to change this behavior: I couldn't catch an error on specific key and fix it. OmegeConf do not return any information for me to fix it.
Third, it would be really helpful to have an ability to pass resolution function, like ramda do https://ramdajs.com/docs/#mergeWith
swarm=compose.merge_with(override, lambdaa,b: b)
So when conflict arises, I just use right value.
The text was updated successfully, but these errors were encountered:
slavaGanzin
changed the title
Function argument for controlling conflict resolution in merge_merge
Controlling conflict resolution in merge_with
Aug 20, 2024
I was tryin to merge two configs, one docker-compose and docker-compose.swarm override. Swarm do not understand object for depends_on, answer should be only a list.
First of all it will be really useful to show what can't be merged.
Second, Dict and Map couldn't be merged, but that's not what I need, and there is no way to change this behavior: I couldn't catch an error on specific key and fix it. OmegeConf do not return any information for me to fix it.
Third, it would be really helpful to have an ability to pass resolution function, like ramda do https://ramdajs.com/docs/#mergeWith
So when conflict arises, I just use right value.
The text was updated successfully, but these errors were encountered: