You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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), ...).
The text was updated successfully, but these errors were encountered:
In most cases the
status
field in the root is a subresource and can't be updated with the same api asspec
ormetadata
. There are separate APIs likecreate_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 onsave()/apply()
if there is aStatus
field in the model or even a separate way (pk.status().save(obj)
,pk.save_status(obj)
, ...).The text was updated successfully, but these errors were encountered: