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

kubeovn / kube-ovn / 24652987962
25%

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2026 07:04AM UTC
Jobs 1
Files 207
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

20 Apr 2026 07:01AM UTC coverage: 24.773% (+0.04%) from 24.73%
24652987962

push

github

web-flow
feat(qos): support configurable ingress/egress burst via annotation (#6628)

* feat(qos): support configurable ingress/egress burst via annotation

Today the OVS-level ingress policer uses a hardcoded burst of rate*80%
and the linux-htb egress queue does not set burst at all, leaving
users no way to tune the burst budget. Introduce two new pod/node
annotations (and provider-scoped templates) carrying the burst value
in Mbit:

  ovn.kubernetes.io/ingress_burst
  ovn.kubernetes.io/egress_burst

An empty value preserves the historical default (80% of rate); an
explicit "0" is honored as-is (strict shaping with no burst). The
values flow through the existing OVS local path: ingress uses
ingress_policing_burst (kbit) and egress writes the linux-htb queue's
other_config:burst (bytes), with the conversion encapsulated in two
small helpers.

Wire the annotations through all daemon reconciliation paths: CNI
add (veth/sriov/dpdk), pod reconcile for the main and multus
attachment networks, and the node gateway. enqueueUpdatePod now
watches the burst annotations so live updates are picked up without
waiting for an unrelated change. Add validator + unit tests.

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(qos): address review feedback on burst handling

- Validator now scans every annotation key ending in
  .kubernetes.io/{ingress,egress}_burst, so provider-scoped burst
  annotations on multus attachment networks are validated alongside the
  unscoped ones (Copilot review on validator.go).
- computeIngressPolicingBurstKbit and computeHtbBurstBytes short-circuit
  to 0 when the rate is non-positive, keeping rate and burst consistent
  with the pre-existing behavior (Copilot review on ovs-vsctl_linux.go).
- Both helpers now log and fall back to the default when the burst
  string fails to parse, so a typo (e.g. "10m") on a node or ... (continued)

47 of 78 new or added lines in 7 files covered. (60.26%)

14014 of 56569 relevant lines covered (24.77%)

0.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
8.43
-0.06% pkg/daemon/controller_linux.go
7
36.86
5.01% pkg/ovs/ovs-vsctl_linux.go
5
0.0
0.0% pkg/daemon/handler.go
4
6.22
-0.03% pkg/daemon/controller.go
4
0.33
0.0% pkg/daemon/ovs_linux.go
2
4.35
-0.02% pkg/daemon/gateway.go
1
98.49
-0.27% pkg/util/validator.go
Jobs
ID Job ID Ran Files Coverage
1 24652987962.1 20 Apr 2026 07:04AM UTC 207
24.77
GitHub Action Run
Source Files on build 24652987962
  • Tree
  • List 207
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b49190cb on github
  • Prev Build on master (#24649490051)
  • Next Build on master (#24698864789)
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