eclipse-symphony / symphony

Symphony project
MIT License
24 stars 17 forks source link

[Proposal] Support inheritance for nested properties in config provider #210

Open roopavidhya opened 1 month ago

roopavidhya commented 1 month ago

Ref - symphony/docs/symphony-book/configuration-management/inheritance.md at main · eclipse-symphony/symphony (github.com)

The config provider in symphony supports inheriting config values from a chain of parents. However, this is not supported for nested objects, Example -

Config.yaml -

....
    wrapper:
        MySettings:
          Setting1: Value1FromSymphonyDev
....

Solution.yaml -

....
  env.MySettings__Setting1: "${{$config('lm-config', 'wrapper.MySettings.Setting1')}}"
....

throws the error - Status - Details: failed to evaluate deployment spec: field 'wrapper.MySettings.Setting1' is not found in configuration 'dev-config'

Expected behavior: env.MySettings__Setting1 should be set to "Value1FromSymphonyDev".