[−][src]Function kube_runtime::watcher::watcher
pub fn watcher<K: Meta + Clone + DeserializeOwned + Send + 'static>(
api: Api<K>,
list_params: ListParams
) -> impl Stream<Item = Result<Event<K>>> + Send
Watches a Kubernetes Resource for changes
Errors are propagated to the client, but can continue to be polled, in which case it tries to recover from the error.
This is similar to kube-rs 0.33's Informer
, or the watching half of client-go's Reflector
.
Renamed to avoid confusion with client-go's Informer
.