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

make Object a more usable #482

Merged
merged 6 commits into from
May 21, 2021
Merged

make Object a more usable #482

merged 6 commits into from
May 21, 2021

Conversation

clux
Copy link
Member

@clux clux commented Mar 30, 2021

Object wasn't really very usable before since it required k8s_openapi impls (so my past use of it had to use Request directly). Now though, with DynamicType in Resource trait, we can avoid that.

This implements the same Resource style impl when DynamicType=ApiResource.

This effectively lets users have a way do typed queries using Api<Object<P,U>> without having to do a full kube-derive setup, and reusing the erased resource from an existing type (see test example).

@clux clux added the api Api abstraction related label Mar 31, 2021
in the same dynamic fashion as DynamicObject, but stricter;
- need to conform to Spec/Status model
- generally only for deserialisation benefits
@clux clux changed the title make Object a bit more usable make Object a more usable May 20, 2021
@clux clux merged commit 2eeabfc into master May 21, 2021
@clux clux deleted the object branch May 21, 2021 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Api abstraction related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant