kubebuilder
kubebuilder copied to clipboard
🐛 remove superfluous addFinalizer error handling :sparkles:
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.