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
There's currently a lot of ceremony around getting an Api corresponding to a DynamicObject that you have got from somewhere, so that you can actually interact with it:
There's a spectrum of options here, all the way from adding individual methods to go from DynamicObject -> GroupVersionKind and an Api<DynamicObject> constructor that takes an optional namespace, to adding a full Api::from_dynamic_object helper that abstracts out the whole ride.
Personally I'd focus less on Api for now since it should be less important going forward (#1375 etc), though #1375 is not enough to make it completely irrelevant yet.
Describe alternatives you've considered
See above
Documentation, Adoption, Migration Strategy
No response
Target crate for feature
kube-client
The text was updated successfully, but these errors were encountered:
would it make sense to have a discovery.resolve_object(&object) which does all the stuff you have there - before Api - and returns the result of resolve_gvk?
Would you like to work on this feature?
None
What problem are you trying to solve?
There's currently a lot of ceremony around getting an
Api
corresponding to aDynamicObject
that you have got from somewhere, so that you can actually interact with it:Describe the solution you'd like
There's a spectrum of options here, all the way from adding individual methods to go from
DynamicObject
->GroupVersionKind
and anApi<DynamicObject>
constructor that takes an optional namespace, to adding a fullApi::from_dynamic_object
helper that abstracts out the whole ride.Personally I'd focus less on
Api
for now since it should be less important going forward (#1375 etc), though #1375 is not enough to make it completely irrelevant yet.Describe alternatives you've considered
See above
Documentation, Adoption, Migration Strategy
No response
Target crate for feature
kube-client
The text was updated successfully, but these errors were encountered: