-
Notifications
You must be signed in to change notification settings - Fork 157
feat: added support for changing config via API #729
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
base: main
Are you sure you want to change the base?
feat: added support for changing config via API #729
Conversation
b01598f to
c4a8343
Compare
19df363 to
b8eeb82
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #729 +/- ##
==========================================
+ Coverage 88.75% 88.85% +0.10%
==========================================
Files 73 77 +4
Lines 13847 14009 +162
==========================================
+ Hits 12290 12448 +158
- Misses 1212 1215 +3
- Partials 345 346 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b8eeb82 to
ef23662
Compare
d117f37 to
4925a11
Compare
d870f38 to
4bc9813
Compare
0422c39 to
48b0b95
Compare
5f131e9 to
9229444
Compare
630b3bf to
ffa9e91
Compare
closes project-zot#268, closes project-zot#698 Signed-off-by: Petu Eusebiu <[email protected]>
ffa9e91 to
8efbe56
Compare
|
This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
closes #268, closes #698
Signed-off-by: Petu Eusebiu [email protected]
What does this PR do / Why do we need it:
added a http handler to GET current zot config or POST a new one
only admins can GET/POST configs
after zot successfully starts its server it will back up the current configurationafter a POST config, zot will validate it and restart the server with the new configuration
if the server crashes because of config errors zot will restore the config to the last backup.(not anymore)the config file which zot starts with is the single source of configuration and it will always reflect the current configuration of a running zot.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.