You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As #898 introduces controllerutil.Object interface it would be nice to migrate controllerutil AddFinalizer and RemoveFinalizer to this interface and remove *WithError functions as they are not needed anymore as checks are performing on the compile time.
The text was updated successfully, but these errors were encountered:
dmvolod
changed the title
Migrate controllerutil AddFinalizer and RemoveFinalizer controllerutil.Object and remove *WithError functions
Migrate controllerutil AddFinalizer and RemoveFinalizer controllerutil.Object and deprecate *WithError functions
May 24, 2020
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.
As #898 introduces controllerutil.Object interface it would be nice to migrate controllerutil AddFinalizer and RemoveFinalizer to this interface and remove *WithError functions as they are not needed anymore as checks are performing on the compile time.
The text was updated successfully, but these errors were encountered: