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
All Kubernetes objects have a kind and apiVersion. Also, these values are fixed per-type (since they basically tell you what the type is). These fields (currently) need special handling in from_raw and to_raw and the handling is essentially the same across all types.
So, instead of making every type duplicate this logic, introduce some APIs that operate onIObject providers and apply this logic.
Something along the lines of object_from_raw(object_to_raw(any_iobject)) == any_iobject.
The text was updated successfully, but these errors were encountered:
All Kubernetes objects have a kind and apiVersion. Also, these values are fixed per-type (since they basically tell you what the type is). These fields (currently) need special handling in
from_raw
andto_raw
and the handling is essentially the same across all types.So, instead of making every type duplicate this logic, introduce some APIs that operate on
IObject
providers and apply this logic.Something along the lines of
object_from_raw(object_to_raw(any_iobject)) == any_iobject
.The text was updated successfully, but these errors were encountered: