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

feat: Improve subnet and VPC finalizer handling #5071

Merged
merged 1 commit into from
Mar 11, 2025
Merged

Conversation

oilbeater
Copy link
Collaborator

  • Add finalizer to subnet and VPC resources if not present
  • Remove VPC finalizer when no subnets exist
  • Enhance VPC status management by adding subnets to queue when empty
  • Use slices.Contains for more idiomatic finalizer checks

Pull Request

What type of this PR

Examples of user facing changes:

  • Bug fixes

Which issue(s) this PR fixes

Fixes #5068

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement Improve exist functions vpc labels Mar 11, 2025
@coveralls
Copy link

coveralls commented Mar 11, 2025

Pull Request Test Coverage Report for Build 13782658946

Details

  • 0 of 14 (0.0%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 22.02%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controller/subnet.go 0 1 0.0%
pkg/controller/vpc.go 0 13 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/ovs/ovn-nb-bfd.go 2 61.61%
Totals Coverage Status
Change from base Build 13781199166: -0.01%
Covered Lines: 10261
Relevant Lines: 46598

💛 - Coveralls

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Mar 11, 2025
@oilbeater oilbeater force-pushed the fix/vpc-del branch 3 times, most recently from 3b88d9c to 9592246 Compare March 11, 2025 06:57
- Add finalizer to subnet and VPC resources if not present
- Remove VPC finalizer when no subnets exist
- Enhance VPC status management by adding subnets to queue when empty
- Use slices.Contains for more idiomatic finalizer checks

Signed-off-by: Mengxin Liu <[email protected]>
@oilbeater oilbeater merged commit 7b11e93 into master Mar 11, 2025
67 of 68 checks passed
@oilbeater oilbeater deleted the fix/vpc-del branch March 11, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve exist functions size:M This PR changes 30-99 lines, ignoring generated files. vpc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] VPCs do not wait for child subnets to be deleted
2 participants