8000 pod watcher: Add InitialListComplete event by dfinkel · Pull Request #14 · vimeo/k8swatcher · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pod watcher: Add InitialListComplete event #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

dfinkel
Copy link
Contributor
@dfinkel dfinkel commented Dec 7, 2021

In some cases, the initial list of pods matching the specified label
matcher may be empty. In that case, clients may still want to continue
initialization. However, the Continues() method only provides
information about the first full state if there are pod events to attach
them to.

This change adds a InitialListComplete event type that lets a caller
figure out when the initial state dump (of CreatePod events) is
complete even when there are no pods that matched the label-matcher.

In some cases, the initial list of pods matching the specified label
matcher may be empty. In that case, clients may still want to continue
initialization. However, the `Continues()` method only provides
information about the first full state if there are pod events to attach
them to.

This change adds a `InitialListComplete` event type that lets a caller
figure out when the initial state dump (of `CreatePod` events) is
complete even when there are no pods that matched the label-matcher.
@dfinkel dfinkel merged commit 5ba38e2 into master Dec 7, 2021
@dfinkel dfinkel deleted the InitialStateComplete_event branch December 7, 2021 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0