Skip to content
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

[Refactor] Introduce utils.AddFinalizer helper #1781

Closed
wants to merge 1 commit into from

Conversation

rueian
Copy link
Contributor

@rueian rueian commented Dec 28, 2023

Why are these changes needed?

Following the PR https://github.com/ray-project/kuberay/pull/1780/files, this PR introduces an AddFinalizer helper to reduce the current boilerplate of checking and adding finalizer tags.

Note that the original usages of controllerutil.ContainsFinalizer are actually not necessary. They can be covered by checking the return value of controllerutil.AddFinalizer.

Related issue number

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@kevin85421 kevin85421 self-requested a review December 28, 2023 18:53
@kevin85421 kevin85421 self-assigned this Dec 28, 2023
@kevin85421 kevin85421 closed this Apr 2, 2024
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.

2 participants