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

Support status subresource #41

Open
arnarg opened this issue Jun 8, 2022 · 0 comments
Open

Support status subresource #41

arnarg opened this issue Jun 8, 2022 · 0 comments

Comments

@arnarg
Copy link

arnarg commented Jun 8, 2022

In most cases the status field in the root is a subresource and can't be updated with the same api as spec or metadata. There are separate APIs like create_namespaced_pod_status, patch_namespaced_custom_object_status, etc.

I've worked around this by creating a mixin that I add to all model classes and provides a method that calls the relevant *_status variant of the APIs but it would be nice if this could be supported by pykorm directly. Either by calling both on save()/apply() if there is a Status field in the model or even a separate way (pk.status().save(obj), pk.save_status(obj), ...).

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

No branches or pull requests

1 participant