-
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
🐛 Adding "unmanaged" option for the "controller builder" #1822
🐛 Adding "unmanaged" option for the "controller builder" #1822
Conversation
Welcome @AlmogBaku! |
Hi @AlmogBaku. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: AlmogBaku The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
c1745fb
to
df8b356
Compare
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.
The builders were meant to be used only for controllers that rely on a manager. If you'd like to use an unmanaged controller, why not call the function directly?
@vincepri To achieve this, developers are required to manually configure and wire the controller and write a lot of code (which is actually the idea of the builder) |
PS. it’s a bit tricky - an “Unmanaged controller” is actually wired to the manager, but just not adding the Runnable to the manager: |
@AlmogBaku: PR needs rebase. 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. |
Closing this based on the lengthy Slack discussion on this topic: https://kubernetes.slack.com/archives/C02MRBMN00Z/p1646938170423789 |
Adding "unmanaged" option for the "controller builder".
Fixes #1821 , see this issue for more details.
The implementation is actually quite small (12 LOC + tests) :P