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

move all of informers into single place that uses it #229

Merged
merged 1 commit into from
Feb 23, 2022

Conversation

deitch
Copy link
Contributor

@deitch deitch commented Feb 10, 2022

With the migration in previous PRs to InstancesV2 and especially standard LoadBalancers, we now use the complex informers structure in just one place, EIP ControlPlane Endpoint Manager.

This PR moves all of that into that one place, cleaning up the wrapping cloud.go.

It also removes much of the loop and wrapping complexity, as there is just one place using it.

It also allows us to remove some of the interface types, and simplify the cloud structure by referencing the structs directly.

Finally, it also sets the resync interval for the informers, allowing us to get rid of the timerLoop.

@deitch deitch requested a review from detiber February 10, 2022 17:54
@deitch
Copy link
Contributor Author

deitch commented Feb 10, 2022

Hopefully this also takes a step towards where @detiber needs it to go.

metal/cloud.go Outdated Show resolved Hide resolved
@deitch
Copy link
Contributor Author

deitch commented Feb 11, 2022

@detiber can you comment on your work on zones? Can we just get rid of it?

@deitch
Copy link
Contributor Author

deitch commented Feb 12, 2022

This is ready for a proper review. Once that is done, I will do a full round of integration testing.

metal/config.go Show resolved Hide resolved
metal/eip_controlplane_reconciliation.go Outdated Show resolved Hide resolved
metal/cloud.go Outdated Show resolved Hide resolved
@deitch
Copy link
Contributor Author

deitch commented Feb 17, 2022

Updated. Ready for another check.

Signed-off-by: Avi Deitcher <avi@deitcher.net>
@deitch deitch merged commit 37eefbd into master Feb 23, 2022
@deitch deitch deleted the isolate-watchers branch February 23, 2022 08:16
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.

None yet

3 participants