Add a WatchStreamExt::modify
shortcut
#1245
Labels
good first issue
Good for newcomers
help wanted
Not immediately prioritised, please help!
runtime
controller runtime related
Would you like to work on this feature?
no
What problem are you trying to solve?
Minor ergonomics improvement for the streams api. Currently stream modification requires:
we could shortcut that ever so slightly:
Describe the solution you'd like
A new
WatchStreamExt::modify
that chainsTryStreamExt::map_ok
withwatcher::Event::modify
Can be verified in examples/pod_reflector.rs.
Describe alternatives you've considered
writing out the full thing, not a big deal, but a nice user facing api simplification when using the streams api.
Documentation, Adoption, Migration Strategy
additive change, put it in the docs and the example.
Target crate for feature
kube-runtime
The text was updated successfully, but these errors were encountered: