• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubeovn / kube-ovn / 23175537884
23%

Build:
DEFAULT BRANCH: master
Ran 17 Mar 2026 02:28AM UTC
Jobs 1
Files 205
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Mar 2026 02:26AM UTC coverage: 23.456% (+0.07%) from 23.391%
23175537884

push

github

web-flow
fix(controller): backfill nat gateway lan ip safely (#6424)

* fix(controller): backfill nat gateway lan ip and sync status

Backfill spec.lanIp from the running NAT gateway pod using StatefulSet owner references. Also mirror spec.lanIp into status and add tests for both behaviors.

Signed-off-by: jimyag <git@jimyag.com>

* refactor(controller): remove nat gateway status lanIp sync

Keep lanIp as a spec-only field for VpcNatGateway.
Remove redundant status.lanIp updates and related unit test coverage.

Signed-off-by: jimyag <git@jimyag.com>

* fix(controller): guard nat gw lanIp backfill when lister is nil

Fallback to direct API get when vpcNatGatewayLister is not initialized.
This prevents nil pointer panics in lanIp backfill test scenarios.

Signed-off-by: jimyag <git@jimyag.com>

* fix(controller): harden nat gw lanIp backfill checks

Restrict lanIp backfill to controller namespace pods and validate parsed IP values before patching.
Also simplify owner name guard logic and expand unit coverage for namespace and invalid-ip cases.

Signed-off-by: jimyag <git@jimyag.com>

* fix(controller): select nat gw lan ip by subnet protocol

Choose backfilled lanIp using subnet protocol to avoid preferring IPv4 on IPv6 subnets.
Add unit coverage for IPv6 subnet backfill behavior.

Signed-off-by: jimyag <git@jimyag.com>

* style(test): fix gofumpt formatting in pod backfill test

Apply gofumpt formatting to TestBackfillVpcNatGwLanIPFromPod setup block.
This matches CI lint expectations for Build kube-ovn.

Signed-off-by: jimyag <git@jimyag.com>

* fix(controller): trigger nat gateway reconcile from pod updates only

Limit VpcNatGateway reconcile trigger to NAT gateway pod update paths.
Remove parent enqueue logic from EIP/FIP/DNAT/SNAT child resource enqueue handlers.
Keep lanIP backfill in parent reconcile.

Signed-off-by: jimyag <git@jimyag.com>

* chore(controller): revert non-functional nat gw handler refactors

Signed-off-by: jimyag <git@jimyag.com>

------... (continued)

56 of 103 new or added lines in 2 files covered. (54.37%)

1 existing line in 1 file now uncovered.

12887 of 54941 relevant lines covered (23.46%)

0.27 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
12
3.41
-0.04% pkg/controller/vpc_nat_gateway.go
35
12.31
2.39% pkg/controller/pod.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
3.41
-0.04% pkg/controller/vpc_nat_gateway.go
Jobs
ID Job ID Ran Files Coverage
1 23175537884.1 17 Mar 2026 02:28AM UTC 205
23.46
GitHub Action Run
Source Files on build 23175537884
  • Tree
  • List 205
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a3b00701 on github
  • Prev Build on master (#23173895938)
  • Next Build on master (#23183472936)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc