[DAEMON-274] appcd-config: Added support for config layers to be used by plugins
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | High |
| Status | Resolved |
| Resolution | Fixed |
| Resolution Date | 2019-06-04T17:01:46.000+0000 |
| Affected Version/s | Appc Daemon 2.2.0 |
| Fix Version/s | Appc Daemon 2.3.0 |
| Components | appcd-config, appcd-config-service, appcd-plugin |
| Labels | n/a |
| Reporter | Chris Barber |
| Assignee | Chris Barber |
| Created | 2019-04-03T20:29:42.000+0000 |
| Updated | 2019-06-05T15:47:10.000+0000 |
Description
Plugin configs are loaded and mixed with the global config, but it's merged at a global level and once merged, remains merged until the daemon is stopped. It also doesn't namespace the plugin configs.
To solve this,
appcd-config needs the ability to define config layers. There is a default root layer, but then each registered config file from plugin is a new layer. These plugin config layers are namespaced so that they don't conflict.
Note that this does not affect the user-defined config which overlays everything.
PR: https://github.com/appcelerator/appc-daemon/pull/367