kubebuilder icon indicating copy to clipboard operation
kubebuilder copied to clipboard

🐛 remove superfluous addFinalizer error handling :sparkles:

Open matrus2 opened this issue 6 months ago • 3 comments
trafficstars

fix: #4564

This pull request refactors the logic for adding finalizers in multiple reconciler implementations to simplify the code and improve readability. The changes replace the use of controllerutil.ContainsFinalizer checks with a more concise pattern that directly checks the result of controllerutil.AddFinalizer.

matrus2 avatar Apr 25 '25 14:04 matrus2