Skip to content
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

Implement create_from_dict #142

Closed
ChriZiegler opened this issue Mar 11, 2021 · 3 comments · Fixed by #143
Closed

Implement create_from_dict #142

ChriZiegler opened this issue Mar 11, 2021 · 3 comments · Fixed by #143

Comments

@ChriZiegler
Copy link

The main kubernetes client has a useful function in utils called create_from_dict. This function is absent in kubernetes_asyncio, but would be very useful, particularly in the case where you want to create a resource from yaml template and change some values in it, without needing to save the altered yaml to a file.

Alternatively, exposing create_from_yaml_single_item officially in the __init__.py of utils would achieve a similar result

@tomplus
Copy link
Owner

tomplus commented Mar 12, 2021

@ChriZiegler It should be the same as in the main client. I'll fix it over the weekend. Thanks.

@ChriZiegler
Copy link
Author

@tomplus Thank you so much! Do you know when this will be available on PyPi?

@tomplus
Copy link
Owner

tomplus commented Mar 25, 2021

Sorry for the delay. It's already released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants