Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document
Controller::reconcile_on
and remove Err
input requirement (
#1304) * Better docs for `Controller::reconcile_on` The unstable method currently suggests that this method can be used to help share a store with the reconciler. This is actually nothing specific to `reconcile_on`, and you can do the same with the streams interface with `watches_stream`. We made the `reconcile_on` right before `watches_stream` became a thing so this makes sense. Have reworded the example to highlight that this has a better use-case with actually getting arbitrary third-party info, and then mapping that to kubernetes objects. First example that came to mind was using an IntervalStream with tokio and just cycle through a bunch of objects, but there may be a better example that does not pull in the extra dev dep. Signed-off-by: clux <[email protected]> * do the same as on kube.rs Signed-off-by: clux <[email protected]> * Update kube-runtime/src/controller/mod.rs Co-authored-by: David Herberth <[email protected]> Signed-off-by: Eirik A <[email protected]> * use david's suggestion Signed-off-by: clux <[email protected]> * no need for send + static Signed-off-by: clux <[email protected]> * stop pretending to handle errors in reconcile_on Signed-off-by: clux <[email protected]> --------- Signed-off-by: clux <[email protected]> Signed-off-by: Eirik A <[email protected]> Co-authored-by: David Herberth <[email protected]>
- Loading branch information