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

kubeovn / kube-ovn / 23737944679
25%

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

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

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>

0 of 13 new or added lines in 1 file covered. (0.0%)

13534 of 55687 relevant lines covered (24.3%)

0.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
0.0
0.0% pkg/daemon/gateway_linux.go
Jobs
ID Job ID Ran Files Coverage
1 23737944679.1 30 Mar 2026 09:37AM UTC 205
24.3
GitHub Action Run
Source Files on build 23737944679
  • Tree
  • List 205
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f1e071be on github
  • Prev Build on master (#23734850894)
  • Next Build on master (#23770324893)
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