-
Notifications
You must be signed in to change notification settings - Fork 4.8k
simplify controller wiring #14333
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
simplify controller wiring #14333
Conversation
|
[test] |
enj
left a comment
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 minus #14293 (comment)
| saTokens.ServiceServingCA = append(saTokens.ServiceServingCA, serviceServingCA...) | ||
| } | ||
| ret["serviceaccount-tokens"] = saTokens.RunController | ||
| // this matches the upstream name |
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.
can we rename the controller as well?
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.
can we rename the controller as well?
doing.
|
|
||
| ret["serviceaccount-pull-secrets"] = controller.RunServiceAccountPullSecretsController | ||
| ret["origin-namespace"] = controller.RunOriginNamespaceController | ||
| ret["openshift.io/serviceaccount-pull-secrets"] = controller.RunServiceAccountPullSecretsController |
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.
openshift.io/controllers/ ?
how about some generator with:
ret.AddOpenShiftController(controller.RunServiceAccount...)
ret.AddKubeController(...)
return ret.InitializersMap()
too much?
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.
openshift.io/controllers/ ?
how about some generator with:
ret.AddOpenShiftController(controller.RunServiceAccount...)
ret.AddKubeController(...)return ret.InitializersMap()
too much?
I think we actually end up creating a method to create NewKubeControllerInitializers and then one method that does NewAllControllerInitializers or something. That will help us prep for splitting apart.
|
2 small nits, LGTM after rebase and green test :-) |
6fe293e to
f73a372
Compare
|
comments addressed. [merge] |
f73a372 to
4e4253f
Compare
|
Evaluated for origin test up to 4e4253f |
|
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1979/) (Base Commit: 5cfbdc3) |
|
Evaluated for origin merge up to 4e4253f |
|
continuous-integration/openshift-jenkins/merge FAILURE (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/942/) (Base Commit: c9a1d10) |
|
included in #14317 |
This builds on @mfojtik's pull to simplify the wiring and reduce us to a single list.
@enj if you have time to review before dcut, you'll thank yourself