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-compose
services:
service1:
# some other args
depends_on:
service2:
condition: healthy
#docer-compose.swarm just to override depends_on
services:
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, lambda a,b: b)
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.