-
Notifications
You must be signed in to change notification settings - Fork 1.2k
SetControllerReference should allow overwriting the previous controller #2381
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
Comments
Changing the controller owner of an object is a very rare operation, which can also impact deletion flows in case of forward collection. I'd expect users to remove the older reference first, then set a new one in that case? |
Agree it won't be used that much, but for doing so I needed to duplicate some controller-runtime internal methods such as |
/kind support Would creating a function to remove the controller reference |
PR merged for function |
Thanks! |
I want to change the controller of an object. The current implementation of
SetControllerReference
returns an error if the new owner is different than the previous one.Adding a new method
SetControllerReferenceOverwrite
can be a solution.The text was updated successfully, but these errors were encountered: