-
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
✨ controllerutil: configure BlockOwnerDeletion when setting OwnerReference #2847
✨ controllerutil: configure BlockOwnerDeletion when setting OwnerReference #2847
Conversation
Welcome @muwaqar! |
Hi @muwaqar. 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-sigs/prow repository. |
The committers listed above are authorized under a signed CLA. |
/hold In your issue you state
but doesn't that go against what we want to use Allowing the BlockOwnerDeletion to be configurable changes the intention of why that is necessary and may conflate the workflow with the owner/controller references. The requisite helper functions alleviate the need to change the configuration of SetControllerReference by using |
@troy0820: based on my understanding of the original ControllerRef proposal, the controller reference is used to identify the owning controller only so that multiple controllers with sharing labels do not clash over the resource, but does not dictate any behavior for garbage collection of owned resources, and says:
i interpret this to be users should be able to configure the cascade deletion behavior. |
The handler we have in /ok-to-test |
@muwaqar: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
Agree with what @muwaqar & @alvaroaleman wrote |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, muwaqar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM label has been added. Git tree hash: b80abb6bc126e56415e0e2677b63ecdfdf422027
|
/hold cancel |
Thanks for the explanation @alvaroaleman and thanks for your contribution @muwaqar 🎉 |
/cherrypick release-0.18 |
@alvaroaleman: new pull request created: #2848 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-sigs/prow repository. |
Currently,
SetOwnerReference()
andSetControllerReference()
in controllerutil do not allow configuringBlockOwnerDeletion
field of the underlyingOwnerReference
. This is limiting for scenarios where one would like to use these helper methods but configureBlockOwnerDeletion
field in a different way than the current defaults.Fixes #2846