Skip to content

refactor: replace hand-rolled finalizer helpers with controllerutil#279

Open
Fedosin wants to merge 1 commit into
kedacore:mainfrom
Fedosin:controllerutils
Open

refactor: replace hand-rolled finalizer helpers with controllerutil#279
Fedosin wants to merge 1 commit into
kedacore:mainfrom
Fedosin:controllerutils

Conversation

@Fedosin
Copy link
Copy Markdown
Contributor

@Fedosin Fedosin commented May 13, 2026

Use controllerutil.ContainsFinalizer, AddFinalizer, and RemoveFinalizer from controller-runtime instead of custom contains/remove slice helpers. Also removes the stale commented-out namespace deletion code.

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO)

Fixes #

@Fedosin Fedosin requested a review from zroubalik as a code owner May 13, 2026 09:05
Use controllerutil.ContainsFinalizer, AddFinalizer, and RemoveFinalizer
from controller-runtime instead of custom contains/remove slice helpers.
Also removes the stale commented-out namespace deletion code.

Signed-off-by: Mikhail Fedosin <mfedosin@redhat.com>
@Fedosin Fedosin force-pushed the controllerutils branch from d002d88 to 9446112 Compare May 13, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant