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

kubeovn / kube-ovn / 21327189803 / 1
23%
master: 23%

Build:
DEFAULT BRANCH: master
Ran 25 Jan 2026 04:58AM UTC
Files 196
Run time 4s
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

25 Jan 2026 04:56AM UTC coverage: 22.895% (+0.02%) from 22.879%
21327189803.1

push

github

web-flow
fix(vpc-nat-gw): use consistent provider for all pod annotations (#6204)

* fix(vpc-nat-gw): use consistent provider for all pod annotations

The VPC NAT gateway custom routes were not being applied because of
inconsistent annotation key prefixes. The `GenNatGwPodAnnotations`
function was hardcoding the "ovn" prefix for annotations like
`ovn.kubernetes.io/logical_switch`, while `setPodRoutesAnnotation`
was using the actual subnet provider (e.g., "subnet.namespace.ovn").

This caused the CNI daemon to look for routes annotation with a
different key than what was set by the controller, resulting in
routes being ignored.

Changes:
- Add `provider` parameter to `GenNatGwPodAnnotations` function
- Use annotation templates instead of hardcoded constants to generate
  annotation keys dynamically based on the provider
- Remove redundant annotation settings in `EnableNonPrimaryCNI` branch
  since `GenNatGwPodAnnotations` now handles all cases uniformly
- Update unit tests to cover both "ovn" and NAD provider scenarios

Fixes #6202

Signed-off-by: zbb88888 <jmdxjsjgcxy@gmail.com>

* simple

Signed-off-by: zbb88888 <jmdxjsjgcxy@gmail.com>

* fix ut

Signed-off-by: zbb88888 <jmdxjsjgcxy@gmail.com>

* fix empty provider

Signed-off-by: zbb88888 <jmdxjsjgcxy@gmail.com>

---------

Signed-off-by: zbb88888 <jmdxjsjgcxy@gmail.com>

12312 of 53775 relevant lines covered (22.9%)

0.27 hits per line

Source Files on job 21327189803.1
  • Tree
  • List 196
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21327189803
  • cb157cfa on github
  • Prev Job for on master (#21324096959.1)
  • Next Job for on master (#21348244167.1)
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