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 startup into controllers #280

Closed
wants to merge 1 commit into from

Conversation

dantingl
Copy link
Contributor

No description provided.

os.Exit(1)
}
if err := ippool.StartIPPoolController(mgr, commonService); err != nil {
log.Error(err, "failed to start IPPool controller")
os.Exit(1)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible that we use a interface Controller, and contains a unified Start method, each controller implement the start method. then we can maintain a List[Controller] , use a for loop to startup all the Controllers, this code seems quite duplicate, and the parameters are almost the same.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we could do it like Cleanup.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refer #330
could close this pr.

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.

4 participants