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

kubeovn / kube-ovn / 23382222605
27%

Build:
DEFAULT BRANCH: master
Ran 21 Mar 2026 02:59PM 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

21 Mar 2026 02:57PM UTC coverage: 23.507% (+0.06%) from 23.449%
23382222605

push

github

web-flow
fix(controller): handle restartable init containers in DeleteNamedPortByPod (#6486)

* fix(controller): handle restartable init containers in DeleteNamedPortByPod

AddNamedPortByPod iterates over both restartable init containers (sidecar)
and regular containers, but DeleteNamedPortByPod only iterated over regular
containers. This caused named ports from sidecar init containers to leak
in namedPortMap after pod deletion.

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(controller): use len() check for container ports consistency

Use `len(container.Ports) == 0` instead of `container.Ports == nil` in
DeleteNamedPortByPod to be consistent with AddNamedPortByPod, correctly
handling both nil and empty slices.

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>

10 of 10 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

12979 of 55213 relevant lines covered (23.51%)

0.27 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
16.08
1.55% pkg/controller/pod.go
Jobs
ID Job ID Ran Files Coverage
1 23382222605.1 21 Mar 2026 02:59PM UTC 205
23.51
GitHub Action Run
Source Files on build 23382222605
  • Tree
  • List 205
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f6e1fb11 on github
  • Prev Build on master (#23381655783)
  • Next Build on master (#23394682787)
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