You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clientwork needed to interface with the node (rpc, cli, etc..)coreCore infrastructure - protocol relatedtoolingtooling to support development, testing et al
As we are introducing cobra library to manage CLI arguments/flags (in scope of #112), it makes sense to also utilize viper - library from the same maintainers with tight integration with cobra - to provide an interface for flexible configuration. This would simplify deployments in container environments significantly, and is an existing pattern in many blockchain clients.
Origin Document
One particular example when we first encountered a need in this is during Pocket Operator PoC - https://www.youtube.com/watch?v=Tf9Qtr1gi3U - for postgres credential configuration.
Goals
An ability to override configuration parameters via CLI arguments and/or via environment variables
Configuration file(s) are managed via viper.
Deliverable
An interface to change configuration parameters (that were originally set either as default value, or from configuration file) with CLI argument or environment variable/
General issue deliverables
Update the appropriate CHANGELOG
Update any relevant READMEs (local and/or global)
Update any relevant global documentation & references
If applicable, update the source code tree explanation
If applicable, add or update a state, sequence or flowchart diagram using mermaid
[Optional] Testing Methodology
TBD
All tests: make test_all
LocalNet: verify a LocalNet is still functioning correctly by following the instructions at docs/development/README.md
andrewnguyen22
changed the title
[Utility][Configuration] Utilize viper for configuration management
[Configuration] Utilize viper for configuration management
Sep 18, 2022
clientwork needed to interface with the node (rpc, cli, etc..)coreCore infrastructure - protocol relatedtoolingtooling to support development, testing et al
Objective
As we are introducing
cobra
library to manage CLI arguments/flags (in scope of #112), it makes sense to also utilizeviper
- library from the same maintainers with tight integration withcobra
- to provide an interface for flexible configuration. This would simplify deployments in container environments significantly, and is an existing pattern in many blockchain clients.Origin Document
One particular example when we first encountered a need in this is during Pocket Operator PoC - https://www.youtube.com/watch?v=Tf9Qtr1gi3U - for postgres credential configuration.
Goals
Deliverable
General issue deliverables
[Optional] Testing Methodology
make test_all
LocalNet
is still functioning correctly by following the instructions at docs/development/README.mdCreator: @okdas
Co-Owners: TBD
The text was updated successfully, but these errors were encountered: