-
Notifications
You must be signed in to change notification settings - Fork 61
Refactor peerpods #1069
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
Refactor peerpods #1069
Conversation
$ wc -l controllers/openshift_controller.go 2764 controllers/openshift_controller.go The file is huge already. The peer-pods logic needs some heavy fixing that will require to add some more peer-pods specific code. Let's move peer-pods to a separate file. It will be easier to read and maintain. This is consistent with what we already do for other more recent features. This doesn't change behavior. Signed-off-by: Greg Kurz <[email protected]>
Consolidate the peer pods enablement code in a separate function. This doesn't change behavior. Signed-off-by: Greg Kurz <[email protected]>
Consolidate the peer pods disablement code in a separate function. For the sake of symmetry with enablePeerPods, name it disablePeerPods. The existing disablePeerPods is arbitrary renamed to disablePeerPodsMiscConfigs. Signed-off-by: Greg Kurz <[email protected]>
|
@gkurz: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/hold so that people can review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super welcome this change, LTGM. thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thanks @gkurz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thanks @gkurz
This is refactoring peer pods code to a separate file for easier maintenance.
Without the PR :
With the PR :
No change in behavior.