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

noironetworks / aci-containers / 11538
63%
master: 63%

Build:
Build:
LAST BUILD BRANCH: mmr-6.1.1
DEFAULT BRANCH: master
Ran 27 Jan 2026 07:11AM UTC
Jobs 1
Files 48
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

27 Jan 2026 06:56AM UTC coverage: 62.727% (-0.4%) from 63.102%
11538

Pull #1658

travis-pro

jeffinkottaram
Add named port support for NetworkPolicy service augmentation

The controller previously did not handle named target ports when
applying NetworkPolicy egress rules with service augmentation. This
caused egress policies to fail for services using named ports, as
the controller could not match named ports specified in NetworkPolicy
rules against actual service endpoints.

This commit adds tracking and resolution of named target ports and
enforces stricter all-or-nothing port coverage semantics for service
augmentation.

Key changes:
- Add namedPortServiceIndex for empty egress 'To' rules (no peer
  selectors) to track and resolve services with named target ports
- For rules with peer selectors, resolve named ports directly from
  EndpointSlices during NetworkPolicy port processing
- Change targetPort.ports from []int to map[int]bool to efficiently
  verify all endpoint IPs are covered by allowed ports
- Enforce exclusion of services with incomplete endpoint coverage
  (previously not properly enforced)
- Fix ruleCounter to generate unique HPP rule names when multiple
  named ports exist in same rule (prevents duplicate identifiers)
- Support port range specifications that involve named ports

Service augmentation now correctly handles named ports and ensures
services are only augmented when all endpoint ports are covered.
Pull Request #1658: Add named port support for NetworkPolicy service augmentation

134 of 277 new or added lines in 2 files covered. (48.38%)

18 existing lines in 2 files now uncovered.

13406 of 21372 relevant lines covered (62.73%)

0.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
56
56.87
-1.77% pkg/controller/services.go
87
77.22
-2.34% pkg/controller/network_policy.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
77.22
-2.34% pkg/controller/network_policy.go
16
56.87
-1.77% pkg/controller/services.go
Jobs
ID Job ID Ran Files Coverage
1 11538.1 (DEFAULT_BRANCH=master GOPROXY=https://proxy.golang.org,https://goproxy.io,direct) 27 Jan 2026 07:11AM UTC 48
62.73
Travis Job 11538.1
Source Files on build 11538
  • Tree
  • List 48
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #11538
  • Pull Request #1658
  • PR Base - master (#11509)
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