-
Notifications
You must be signed in to change notification settings - Fork 12
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: add a configuration service #416
Conversation
Adds a configuration service that can be used to get application configuration.
Sets existing configuration getters to use the config service.
f013ae9
to
41a0b70
Compare
CRAFT_* environment variables are now only used if the config item is known to craft-application (not for app-specific config).
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.
Very slick. So I guess apps will subclass ConfigModel
and can centralize all their envvars and those vars' default values.
@tigarmo @cmatsuoka @dariuszd21 I'd like opinions on this from you before merging please :-) |
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.
🚀
Co-authored-by: Dariusz Duda <dariusz.duda@canonical.com>
Co-authored-by: Dariusz Duda <dariusz.duda@canonical.com>
Adds a configuration service that can be used to get application configuration. CRAFT_* environment variables are only used if the config item is known to craft-application (not for app-specific config). Co-authored-by: Dariusz Duda <dariusz.duda@canonical.com>
tox
?Adds a service for handling application configuration. This service works as follows:
CRAFT_*
environment variables