Skip to content
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

[pull] master from kubernetes-sigs:master #105

Merged
merged 10 commits into from
Jan 21, 2021

Conversation

pull[bot]
Copy link

@pull pull bot commented Jan 19, 2021

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

alvaroaleman and others added 4 commits January 10, 2021 22:53
This pr implements the second half of the ["Move cluster-specific code
out of the manager" proposal][0]: Making it start all caches before other
Runnables and not just the one of the main Cluster.

[0]: https://github.com/kubernetes-sigs/controller-runtime/blob/66537ca5b7439b06f2f3b08901640f934834c9a1/designs/move-cluster-specific-code-out-of-manager.md#L131-L132
🐛 Prevent source.Channel from shutting down immediately
@pull pull bot added the ⤵️ pull label Jan 19, 2021
vincepri and others added 6 commits January 21, 2021 10:19
During debugging a weird issue with some tests failing if they were
running too fast. In other words, calling Start() and Close() on
a manager too fast throws an error where the informers haven't been able
to sync, which then makes Start() fail with an error.

In an effort to improve this behavior, tried to use Elected() to wait
for leader election to start, which also waits for the cache.

During some debugging, this issue happened again and upon digging a bit
more it seems that the channel was closed before starting the runnables
in some cases.

This change reorders the close on cm.elected, which should fix the above
issue.

Signed-off-by: Vince Prignano <vincepri@vmware.com>
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
✨ Manager: Start all caches before other Runnables
🐛 Manager.Elected() should beclosed after runnables are started
✨Fix context.TODO() in the example
🌱 fix DestWritter var name typo
@pull pull bot merged commit 8144092 into alexeldeib:master Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants