-
Notifications
You must be signed in to change notification settings - Fork 1.2k
🐛 Use metav1.Object instead of Object #1087
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
🐛 Use metav1.Object instead of Object #1087
Conversation
In order to allow for a broader adoption of ContainsFinalizer, RemoveFinalizer and AddFinalizer and remove a BC break introduced to 0.5.x I switched the method back to the `metav1.Object`. After reading kubernetes-sigs#959 and kubernetes-sigs#962 I'm unable to understand the benefit of requiring `runtime.Object` so I propose to revert the BC break and possible panic on line 285.
Hi @boekkooi-fresh. 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: boekkooi-fresh 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 |
@vincepri I think this would be a good candidate for 0.7 |
@boekkooi-fresh: 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/test-infra repository. I understand the commands that are listed here. |
I'm not sure if we want to go down this path, we want to make sure objects are "Kubernetes Objects" going forward, or that was the original intent. |
Yeah I apparantly didn't read the change properly. I think what we want for all finalizer-related funcs is to work on an |
I think so, I also wouldn't be opposed to move the interface under the main package, maybe under the alias.go file? |
I have to agree with @vincepri here that moving this under the main package maybe better for the Regarding my main issue is that between |
@boekkooi-fresh Apologies this caused a breaking change for you, we're trying to move to this object interface internally in controller runtime to avoid casting at runtime, instead we want to require that objects are always runtime.Object and metav1.Object |
Hey @vincepri, Thank you all for the nice library! |
@boekkooi-fresh That's our goal! This was an oversight, apologies again for that. /close |
@vincepri: Closed this PR. 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. |
In order to allow for a broader adoption of ContainsFinalizer, RemoveFinalizer and AddFinalizer and remove a BC break introduced to 0.5.x I switched the method back to the
metav1.Object
.After reading #959 and #962 I'm unable to understand the benefit of requiring
runtime.Object
so I propose to revert the BC break and possible panic on line 285.