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

kubeovn / kube-ovn / 23737944679 / 1
25%
master: 25%

Build:
DEFAULT BRANCH: master
Ran 30 Mar 2026 09:37AM 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

30 Mar 2026 09:34AM UTC coverage: 24.304% (+0.004%) from 24.3%
23737944679.1

push

github

web-flow
fix(daemon): harden protocol iteration and bounds checks in gateway (#6547)

* fix(daemon): use append pattern for protocols slice in gateway functions

setIPSet, gcIPSet, and setPolicyRouting used make([]string, 2) with index
assignment, causing an empty string iteration in non-dual-stack mode.
Use make([]string, 0, 2) + append to match the existing setIptables style.

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>

* fix(daemon): guard ips[1] access and handle unknown nat policy action

In getLocalPodIPsNeedPR, `ips` has at most 1 element per protocol, so
the else branch accessing ips[1] would panic if reached (e.g. in
IPv6-first dual-stack clusters where PodIPs ordering is reversed).
Add len(ips) >= 2 bounds check.

In generateNatOutgoingPolicyChainRules, add default: continue to the
action switch to skip unknown actions instead of generating invalid
iptables rules with an empty --set-xmark value.

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>

* fix(daemon): log warning for unknown nat outgoing policy action

Address review feedback: log a warning with subnet name and action
value before skipping rules with unknown actions, so misconfigurations
are visible rather than silently dropped.

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>

---------

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

13534 of 55687 relevant lines covered (24.3%)

0.28 hits per line

Source Files on job 23737944679.1
  • Tree
  • List 205
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 23737944679
  • f1e071be on github
  • Prev Job for on master (#23734850894.1)
  • Next Job for on master (#23770324893.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