Function kube_runtime::watcher::watch_object
source · [−]pub fn watch_object<K: Resource + Clone + DeserializeOwned + Debug + Send + 'static>(
api: Api<K>,
name: &str
) -> impl Stream<Item = Result<Option<K>>> + Send
Expand description
Watch a single named object for updates
Emits None
if the object is deleted (or not found), and Some
if an object is updated (or created/found).
Compared to watcher
, watch_object
does not return return Event
, since there is no need for an atomic
Event::Restarted
when only one object is covered anyway.