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

api: defer controller manager init #4699

Merged
merged 1 commit into from
Jun 29, 2021
Merged

api: defer controller manager init #4699

merged 1 commit into from
Jun 29, 2021

Conversation

milas
Copy link
Contributor

@milas milas commented Jun 28, 2021

We've had a race condition here all along, but apparently the
latest changes exacerabated it (maybe just due to sheer number
of reconcilers we have now).

This moves the actual start of the controller manager to after
the controllers are initialized (which itself happens in two
phases).

It'd be nice to fully redo this initialization sequence in the
future, but we'd need to de-couple it from using the store to
initialize everything.

Fixes #4698.

We've had a race condition here all along, but apparently the
latest changes exacerabated it (maybe just due to sheer number
of reconcilers we have now).

This moves the actual start of the controller manager to after
the controllers are initialized (which itself happens in two
phases).

It'd be nice to fully redo this initialization sequence in the
future, but we'd need to de-couple it from using the store to
initialize everything.
@milas milas requested a review from landism June 28, 2021 22:03
@milas milas merged commit 2af3565 into master Jun 29, 2021
@milas milas deleted the milas/controller-mgr-init branch June 29, 2021 14:14
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.

tilt rarely fails on launch with "Error: error creating builder: informer has already started"
2 participants