-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Refactor: remove viper in server context #22388
Comments
If we do that, we should remove the ViperContextKey from core then, as it will be a v1 thing only. Additionally, |
Agree that ViperContextKey should be renamed to ConfigContextKey and return a |
Yes, I agree with the above. To not be breaking it should be a DynamicConfig stored in the context however and not a ConfigMap. |
Given that we have viper in core v1, and the release is approaching soon and viper is nicely integrated in the servers, closing this as won't do,. |
After the merge of #22267 it will be possible to remove the
viper.Viper
instance from server command context and replace it withserver.ConfigMap
. This small bit of refactoring abstracts all config loading away from Viper, since that is handled early in application life cycle withParseCommand
. It will allow for:The text was updated successfully, but these errors were encountered: