-
Notifications
You must be signed in to change notification settings - Fork 536
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
fix: KubernetesObjectSerializer::deserialize() should support list api #2125
base: master
Are you sure you want to change the base?
Conversation
thestupd
commented
Dec 24, 2024
- Added a new KubernetesObjectList class to handle list APIs with appropriate schema attributes (apiVersion, kind, metadata, and items).
- Updated the deserialization logic to instantiate and populate KubernetesObjectList instances when appropriate.
- Added test cases to validate the deserialization of Kubernetes object lists, ensuring correctness and compatibility with unknown object schemas.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: empty21 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @empty21! |
The custom Serializer update in version Example: const responseList = await objectApi.list("foo", "bar", "default");
const firstItem = responseList.body.items[0];
// Modify some data
await objectApi.replace(firstItem); // This fails because the items in the list are not deserialized correctly. |