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

qiniu / kube-ovn / 23175574184 / 1
26%
master: 26%

Build:
DEFAULT BRANCH: master
Ran 17 Mar 2026 02:31AM UTC
Files 205
Run time 5s
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.449% (+0.5%) from 22.981%
23175574184.1

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)

12883 of 54941 relevant lines covered (23.45%)

0.27 hits per line

Source Files on job 23175574184.1
  • Tree
  • List 205
  • Changed 39
  • Source Changed 0
  • Coverage Changed 39
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 23175574184
  • a3b00701 on github
  • Prev Job for on master (#21902132001.1)
  • Next Job for on master (#24073276680.1)
  • Delete
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