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

kubernetes-sigs / external-dns / 40002035093
83%

Build:
DEFAULT BRANCH: master
Ran 23 Oct 2026 06:23PM UTC
Jobs 2
Files 164
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

23 Oct 2026 06:17PM UTC coverage: 82.402% (-0.003%) from 82.405%
40002035093

push

github

web-flow
fix(aws): validate geoproximity bias is within Route53 range [-99, 99] (#6762)

* fix(aws): validate geoproximity bias is within Route53 range [-99, 99]

The AWS provider parsed the geoproximity-location-bias annotation with strconv.ParseInt but never validated the range. Route53 only accepts a bias between -99 and 99 (per the GeoProximityLocation API), so an out-of-range value (e.g. "100") was accepted locally and then rejected by ChangeResourceRecordSets at reconcile time, landing the change in the failed-changes retry queue indefinitely.

This mirrors the existing validateCoordinates() pattern for latitude/longitude: on an out-of-range bias, log a warning and fall back to 0 (matching the existing parse-error fallback). Adds minBias/maxBias constants next to the lat/long bounds and out-of-range test cases to TestGeoProximityWithBias.

Signed-off-by: avneetbansal-aws <284363899+avneetbansal-aws@users.noreply.github.com>

* fix(aws): clamp out-of-range geoproximity bias to Route53 bounds

Per review feedback, clamp an out-of-range bias to the nearest valid bound (values below -99 -> -99, above 99 -> 99) instead of resetting to 0, so a value like 100 preserves the user's intent of a strong positive bias. Parse errors still fall back to 0. Updated the out-of-range test cases accordingly.

Signed-off-by: avneetbansal-aws <284363899+avneetbansal-aws@users.noreply.github.com>

* fix(aws): rewrite bias if-else chain to switch (gocritic)

Signed-off-by: avneetbansal-aws <284363899+avneetbansal-aws@users.noreply.github.com>

---------

Signed-off-by: avneetbansal-aws <284363899+avneetbansal-aws@users.noreply.github.com>
Co-authored-by: avneetbansal-aws <284363899+avneetbansal-aws@users.noreply.github.com>

16066 of 19497 relevant lines covered (82.4%)

1454.49 hits per line

Coverage Regressions

Lines Coverage ∆ File
50
87.89
0.05% aws/aws.go
1
86.92
-0.93% openshift_route.go
Jobs
ID Job ID Ran Files Coverage
1 run-ubuntu-latest - 40002035093.1 23 Oct 2026 06:23PM UTC 164
82.4
GitHub Action Run
2 run-macos-latest - 40002035093.2 23 Oct 2026 06:23PM UTC 164
82.4
GitHub Action Run
Source Files on build 40002035093
  • Tree
  • List 164
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40002035093
  • 19b96149 on github
  • Prev Build on master (#40000698212)
  • Next Build on master (#40076076270)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc