-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: dynamic file loader #96
Conversation
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
… into refactor/typed-runtime-cfg
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
…m/sparrow into feat/simplify-helm-chart-config
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
Signed-off-by: Bruno Bressi <bruno.bressi@telekom.de>
72e6a60
to
3ea387e
Compare
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.
Must still review the tests.
* chore: adjust godoc * chore: log with path * fix: handle file close error * test: add unit test for file close error * feat: validate file path config * test: add file path config validation tests
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.
OK, everything seems fine by me. I would additionally comment the methods of the test
package which mock the fs.File interface.
Motivation
To also dynamically load the runtime config locally with a file.
Closes #85
Changes
I've adjusted the file loader to run in the same interval as the http loader.
Additionally I've fixed some race conditions in the http loader tests and harmonized both loaders.
For additional information look at the commits.
Tests done
I've provided some unit tests for the file loader.
Manual E2E test
Logs (with debug logs):
TODO