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

Remove staticroute finalizer #794

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TaoZou1
Copy link
Contributor

@TaoZou1 TaoZou1 commented Oct 8, 2024

The finalizer may block the deletion since the NSX resource may take long time to delete.
Remove the finalizer so the deleting operation will return immediately

Test Done:

  1. create a staticroute, check if it has no finalizer
  2. delete the staticroute, check log if the staticroute has been deleted from nsx side

@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 68.96552% with 18 lines in your changes missing coverage. Please review.

Project coverage is 49.10%. Comparing base (762863a) to head (8b58b87).

Files with missing lines Patch % Lines
pkg/nsx/services/staticroute/staticroute.go 10.00% 9 Missing ⚠️
.../controllers/staticroute/staticroute_controller.go 82.05% 6 Missing and 1 partial ⚠️
pkg/nsx/services/staticroute/store.go 77.77% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #794      +/-   ##
==========================================
+ Coverage   49.05%   49.10%   +0.05%     
==========================================
  Files          94       94              
  Lines       12194    12228      +34     
==========================================
+ Hits         5982     6005      +23     
- Misses       5709     5721      +12     
+ Partials      503      502       -1     
Flag Coverage Δ
unit-tests 49.10% <68.96%> (+0.05%) ⬆️
Files with missing lines Coverage Δ
pkg/nsx/services/common/types.go 100.00% <ø> (ø)
pkg/nsx/services/staticroute/store.go 79.41% <77.77%> (-2.74%) ⬇️
.../controllers/staticroute/staticroute_controller.go 80.00% <82.05%> (+2.44%) ⬆️
pkg/nsx/services/staticroute/staticroute.go 43.75% <10.00%> (-3.31%) ⬇️

@TaoZou1 TaoZou1 force-pushed the removesrfinalizer branch 3 times, most recently from e3f6489 to 3189009 Compare October 8, 2024 09:18
@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Oct 9, 2024

/e2e

timdengyun
timdengyun previously approved these changes Oct 11, 2024
Copy link
Contributor

@timdengyun timdengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

wenqiq
wenqiq previously approved these changes Oct 11, 2024
timdengyun
timdengyun previously approved these changes Oct 11, 2024
Copy link
Contributor

@timdengyun timdengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

wenqiq
wenqiq previously approved these changes Oct 11, 2024
Copy link
Contributor

@wenqiq wenqiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The finalizer may block the deletion since the NSX resource may take long time
to delete. Remove the finalizer so the deleting operation will return
immediately
Copy link
Contributor

@timdengyun timdengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TaoZou1
Copy link
Contributor Author

TaoZou1 commented Oct 12, 2024

/e2e

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.

4 participants