-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
Utilize HasSpec and HasObject traits for api methods #295
Comments
A trait similar to this this would also be useful for the scale subresource, allowing us to could help close #142. Though I suspect either of these would have to be defined on the k8s-openapi side (and implemented there for structs that allow it). |
Another annoying point; subresources may need two versions by the look of the APIResource struct |
We have had traits for this for a while; |
From a scan of
k8s-openapi
it does appear that it's only theObject<P, U>
types, i.e. objects that look like:That actually support the status subresource methods.
If we had a trait for "implements the spec and status model", then we might be able to implement it more accurately in
subresource.rs
and actually constrain the type definition for what goes in and comes out of the api methods there.currently they are awkwardly all handling bytes as input.
..but then again, people will want to use server side apply on pretty much everything here anyway, so maybe it's not worth it.
The text was updated successfully, but these errors were encountered: