-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Feature Request] Implement a Config Loader #237
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
Comments
Sounds good to me. Can you provide more information about what is your plan to do? There is a Configuration class and current |
Thanks, I will be posting the structure to discuss shortly. |
Please find a draft version for implementation detail:
|
Thanks for providing the example. The part I am not clear on yet is if we save much code by generalizing config. Also the example is an ini file, what about the new code structure? What do you want to generalize? |
and similar to _get_kube_config_loader_for_yaml_file:
OR maybe use a generic loader like:
and implement loader based on file type (maybe ending with conf, or passing additional param to check whether file needs to be loaded in specific type.
I do not have an exact model at the moment but it would be good to hear from you about your thought on this. This may or may not be needed but it would be good to have. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
rename method _websocket_reqeust to _websocket_request
Current Implementation Of Client loads configuration from yaml File:
Following function loads yaml and do the processing.
_get_kube_config_loader_for_yaml_file
There are many cases and projects where Configurations are present in different options like ini file which needs to be loaded where creating a ConfigurationObject and assigning parameters is one way.It could save a lot of code if generic handler for loading could be implemented in Client-python as well.
The text was updated successfully, but these errors were encountered: