Skip to content

controller: fix vpc egress gateway not working for targets within the…#6218

Merged
zhangzujian merged 1 commit intokubeovn:masterfrom
zhangzujian:fix-veg
Jan 28, 2026
Merged

controller: fix vpc egress gateway not working for targets within the…#6218
zhangzujian merged 1 commit intokubeovn:masterfrom
zhangzujian:fix-veg

Conversation

@zhangzujian
Copy link
Copy Markdown
Member

… internal subnet's cidr

Pull Request

What type of this PR

Examples of user facing changes:

  • Features
  • Bug fixes
  • Docs
  • Tests

Which issue(s) this PR fixes

Fixes #(issue-number)

@zhangzujian zhangzujian added bug Something isn't working need backport labels Jan 27, 2026
… internal subnet's cidr

Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21397805276

Details

  • 0 of 8 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.002%) to 22.921%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controller/vpc_egress_gateway.go 0 8 0.0%
Totals Coverage Status
Change from base Build 21380742843: -0.002%
Covered Lines: 12334
Relevant Lines: 53810

💛 - Coveralls

@zhangzujian
Copy link
Copy Markdown
Member Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request effectively addresses the issue where the VPC egress gateway was not correctly handling targets within the internal subnet's CIDR. The changes correctly modify the logic to include these internal subnet CIDRs in the source sets for routing, which aligns with the PR's stated goal. The introduction of ipv4Src and ipv6Src to collect all relevant source CIDRs and their subsequent use in OVN route reconciliation is a logical and necessary step for this fix.

@zhangzujian zhangzujian marked this pull request as ready for review January 27, 2026 13:18
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. vpc labels Jan 27, 2026
@zhangzujian zhangzujian requested a review from oilbeater January 27, 2026 13:52
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 27, 2026
@zhangzujian zhangzujian merged commit 42393cf into kubeovn:master Jan 28, 2026
76 of 77 checks passed
@zhangzujian zhangzujian deleted the fix-veg branch January 28, 2026 01:38
zhangzujian added a commit that referenced this pull request Jan 28, 2026
… internal subnet's cidr (#6218)

Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
zhangzujian added a commit that referenced this pull request Jan 28, 2026
… internal subnet's cidr (#6218)

Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
zbb88888 pushed a commit to qiniu/kube-ovn that referenced this pull request Jan 29, 2026
… internal subnet's cidr (kubeovn#6218)

Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer need backport size:S This PR changes 10-29 lines, ignoring generated files. vpc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants