-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Reduce command line flag boilerplate #207
Comments
/kind feature |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten cc @luxas re componentconfig |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/lifecycle frozen see also #518 |
Closing, superseded by #518 and friends /close |
@vincepri: Closing this issue. In response to this:
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/test-infra repository. |
We've so far been somewhat CLI-agnostic in controller runtime. However, considering that this is a common task, we may wish to set up some optional helpers (i.e. a pattern) for per-controller flag setup.
This pattern helps make controllers more distinct, which makes it easier to refactor large controllers managers out into smaller ones, choose to run certain controllers, but not all, and can clarify controller setup. It should be advantageous for larger controllers, but not necessarily mandatory for quickly getting up and running.
Something so that you can basically do:
Perhaps this could be simplified (avoiding the separation between raw options and controller fields) to
But the separation between raw options and controller fields may be advantageous enough to warrant the extra separation.
cc @cheftako
The text was updated successfully, but these errors were encountered: