You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/04 04:16:25 UTC
[GitHub] [apisix-dashboard] bzp2010 opened a new issue #1931: feat: migrate to viper library for config manage
bzp2010 opened a new issue #1931:
URL: https://github.com/apache/apisix-dashboard/issues/1931
# Feature request
## Please describe your feature
At present, the original yaml file is directly read and unmarshal mode is used for configuration management. If a new configuration item is added, multiple codes will be modified, and if the old configuration is changed, it will be incompatible.
## Describe the solution you'd like
Use `github.com/spf13/viper` to manage configurations. (It uses MIT license, we should be able to import it.)
It supports the use of yaml and JSON format configuration files, or configuration based on environment variables. At the same time, it can also provide etcd based configuration management function.
## Improvement Roadmap
1. First, only change `conf.go` to unmarshal the configuration file into the structure pointer by viper, which will not destroy the compatibility of the old program.
2. Then, use Viper to get the configuration file in the newly written code.
3. Finally, gradually modify the old code to read the configuration code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] github-actions[bot] commented on issue #1931: feat: migrate to viper library for config manage
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #1931:
URL: https://github.com/apache/apisix-dashboard/issues/1931#issuecomment-956103071
This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] bzp2010 closed issue #1931: feat: migrate to viper library for config manage
Posted by GitBox <gi...@apache.org>.
bzp2010 closed issue #1931:
URL: https://github.com/apache/apisix-dashboard/issues/1931
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org