-
Notifications
You must be signed in to change notification settings - Fork 242
Dynamic configuration reload #1113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
546e9fb to
753dbac
Compare
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Codecov Report
@@ Coverage Diff @@
## main #1113 +/- ##
===========================================
- Coverage 100.00% 99.97% -0.03%
===========================================
Files 303 303
Lines 19799 19528 -271
===========================================
- Hits 19799 19524 -275
- Misses 0 4 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
dc078e3 to
0214e15
Compare
nguyer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. I'll see if I can work out the conflicts.
| ## config | ||
|
|
||
| |Key|Description|Type|Default Value| | ||
| |---|-----------|----|-------------| | ||
| |autoReload|Monitor the configuration file for changes, and automatically add/remove/reload namespaces and plugins|`boolean`|`<nil>` | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The config for the config 🤯
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
Summary
This PR implements file-listener based dynamic configuration reload for FireFly Core.
configmaporsecretnamespacesandpluginshave changedImplementation detail
The
namespace.Managercode has been refactored with the following significant changes:namespaceManager.pluginsandnamespaceManager.pluginNameshas been replaced with a single map ofplugins- which depending on thecategorywill have a link to the specific plugin typefirefly/internal/namespace/configreload.go
Lines 63 to 124 in 1ffb555