Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `Controller::for_stream` This adds a stream interface analogue for `Controller::new`, that allows the user to create the root `watcher` and `reflector`, outside, and pass in the reader + flattened stream. We originally discussed this name as `from_stream`, but given that we need to also pass along the `reader`, it is no longer a `From` equivalent. So have instead named it along the lines of `Controller::for` and highlighted the terminology. Note that `Controller::For` is the [controller-runtime equivalent](https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/builder#Builder.For). Also fixes up bad doc setups and ensures unstable features are highlighted, even though they appear in the middle of a trait. The owns-stream unstable flagged is moved to `unstable-runtime-stream-share` which now also contains this new method. Signed-off-by: clux <sszynrae@gmail.com> * fix extraneous import of `StreamExt` in watcher docs closes #1186 Tried to cherry-pick, but would have had to do a rebase on the two commits in there, so just re-did it. Thanks @suryapandian. Signed-off-by: clux <sszynrae@gmail.com> * forgotten sentence save Signed-off-by: clux <sszynrae@gmail.com> * Add `Controller::watches_stream` Signed-off-by: clux <sszynrae@gmail.com> * cleanup dynamic type bounds for watches Signed-off-by: clux <sszynrae@gmail.com> * rename feature to stream-control since it doesn't work with stream subscribe yet Signed-off-by: clux <sszynrae@gmail.com> * remove leftover arc when testing Signed-off-by: clux <sszynrae@gmail.com> * factor out `trigger_others` from Controller::watches* bodies Signed-off-by: clux <sszynrae@gmail.com> * use david's smarter trigger_owners Signed-off-by: clux <sszynrae@gmail.com> --------- Signed-off-by: clux <sszynrae@gmail.com>
- Loading branch information