-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Find API call to create object from yaml config #387
Comments
As this is the most requested feature in this repo by far I thought I nudge it to the top of the issues. |
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. |
Hi, |
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. |
Still the scond-most requested feature: |
"kubectl apply -f" is currently implemented on the client side, it has many subtle issues. It would be a significant effort to support that in python. That said, there is server side apply feature in main k/k repo that goes to beta in 1.16. It would be better to wait and use that feature directly in python. |
is there a link for it? |
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. |
I have a yaml file containing configs that I would like to apply as
kubectl apply -f my_file.yml
would. It is possible to pass configs loaded from yaml unmodified to API calls as discussed in #63 and illustrated in thecreate_deployment.py
example. However, if you have a collection of objects you have to figure out which call to make on which API version to apply each item of config, while theapiVersion
andkind
keys in the config, which carry this information, get ignored.Is there any way to find the right API version object and function given the
apiVersion
andkind
values other than to have a mapping in my own code? If not, would it be possible to add such a thing, and maybe genericcreate
anddelete
calls that read those attributes from the body, thus behaving similarly to kubectl?The text was updated successfully, but these errors were encountered: