-
Notifications
You must be signed in to change notification settings - Fork 485
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
[Common Config Bootstrapper] Apply env overrides to values only when loaded from file #4448
Comments
closes edgexfoundry#4448 Signed-off-by: Leonard Goodell <[email protected]>
* feat: Add env override capability for common configuration closes #4448 Signed-off-by: Leonard Goodell <[email protected]>
I believe the agreement was to remove the EdgeX v2 confusion that was being caused by pushing environment overrides to the config provider during startup. To my understanding, it was decided to apply environment variable overrides only when loading config from a file, that is when config provider is not used, and ignore them otherwise. This was documented in this issue originally as:
However, the issue description and the implementation is now different and the EdgeX v2 issue persists. The user sets something during startup and it sticks. When unset, the override doesn't go away. |
@farshidtz if we don't push the environment overrides to the Config Provider during the first time startup, the Config Provider would be seeded with the default config files only. For example, the other service client host will be |
The Common Config ADR is being modified to formalize the decisions: edgexfoundry/edgex-docs#1025 |
As decide in 3/15/2023 Architects meeting, Config Provider will be the System of Record for services' values.
This means that env overrides are only applied when configuration is loaded from file, including the common config file.
They are not applied to values loaded from Config Provider.
The overridden values are pushed into the Config Provider the first time the service starts or when the -o flag is used.
The text was updated successfully, but these errors were encountered: