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

kedgeproject / kedge / 457
40%

Build:
DEFAULT BRANCH: master
Ran 14 Sep 2017 06:12AM UTC
Jobs 2
Files 7
Run time 10s
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

pending completion
457

push

travis-ci

surajssd
introduce portMappings shortcut (#242)

add shortcut for portMappings

This commit adds a shortcut to ServiceSpec called portMappings.
This lets us set the port, targetPort and the protocol for a
service in a single line. This is parsed and converted to a
Kubernetes ServicePort object.

portMappings is an array of `port:targetPort/protocol`
definitions, so the syntax looks like -

portMappings:
- <port:targetPort/protocol>
- <port:targetPort/protocol>

Also, tests are added to test the added behavior.

The logic of auto populating names for the services has been moved
from fix.go to populators.go, because now the auto population
happens once the []ServicePort is populated from the both the
inputs, ServiceSpecMod.Ports and ServiceSpecMod.PortMappings

Fixes #216

74 of 74 new or added lines in 2 files covered. (100.0%)

355 of 781 relevant lines covered (45.45%)

3.77 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
100.0
pkg/spec/resources.go
Jobs
ID Job ID Ran Files Coverage
1 457.1 14 Sep 2017 06:12AM UTC 0
45.45
Travis Job 457.1
2 457.2 14 Sep 2017 06:12AM UTC 0
45.45
Travis Job 457.2
Source Files on build 457
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #457
  • 38b9d035 on github
  • Prev Build on master (#450)
  • Next Build on master (#458)
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