-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Should Api handle serialization too? #142
Comments
`Vec<u8>`s are still supported, but deprecated. Sadly, `#[deprecated]` doesn't work for trait impls, so a doccomment was used instead. Fixes kube-rs#142.
lets you use Api without the generic type parameter, but all the methods have the generic type param. this lets you re-use a `Api::namespaced::<Pod>(...)` (say) by doing: - api.get::<Pod>(...) - api.get::<LimitedPod>)(...) which can be useful sometimes. Not entirely sure about this, but it has a use-case for me where I need to re-define a CRD type twice (one with the api-guaranteed fields, and one without)
For the subresource Not sure what's sensible for this.. could do one of these 3:
|
FWIW this applies to I like 2. Doesn't lead to a bunch of useless |
Going to close this upon further reflection.
Will document patch it a little better, then close. |
It feels weird that deserialization is out of your control, but requests are just untyped
Vec<u8>
s.Patches would be trickier to get right, though. Hmm..
The text was updated successfully, but these errors were encountered: