-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix the issue that NSX VPC not deleted when the Namespace is terminating #948
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #948 +/- ##
==========================================
- Coverage 73.43% 73.37% -0.06%
==========================================
Files 118 118
Lines 16414 16397 -17
==========================================
- Hits 12054 12032 -22
- Misses 3575 3581 +6
+ Partials 785 784 -1
|
67536db
to
89fe570
Compare
/e2e |
2 similar comments
/e2e |
/e2e |
89fe570
to
b55a016
Compare
/e2e |
2a87f1d
to
b71c919
Compare
/e2e |
c693177
to
7caf932
Compare
/e2e |
This change is intended to consider Namespaces in the terminating state when deleting stale VPCs, rather than |
7caf932
to
ba216d7
Compare
Yes, updated the PR title. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This change is to fix an issue with the NetworkInfo deletion logic that NSX VPC is not removed if the CR's Namesapce still exists. The fix is to add a wather on Namespace deletion event and ensure the NSX VPC is deleted when the K8s Namespace is deleted.
ba216d7
to
a04f5c4
Compare
a04f5c4
to
52387a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ing (vmware-tanzu#948) * Fix issues with NetworkInfo reconciler that not delete NSX VPC in time This change is to fix an issue with the NetworkInfo deletion logic that NSX VPC is not removed if the CR's Namesapce still exists. The fix is to add a wather on Namespace deletion event and ensure the NSX VPC is deleted when the K8s Namespace is deleted. * Filter out the Namespace which is in terminating state
This change is to fix an issue with the NetworkInfo deletion logic that NSX VPC is not removed if the CR's Namesapce still exists.
The fix is to filter out the Namespace if it is already mark for deletion when a NetworkInfo CR is deleted.
Test Done:
With this fix, after the e2e is completed, the new created VPC by the test cases are deleted in time.