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

kubernetes-sigs / karpenter / 21057388274
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: refactor/node-utils-getter-naming
DEFAULT BRANCH: main
Ran 16 Jan 2026 06:19AM UTC
Jobs 1
Files 153
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

16 Jan 2026 06:04AM UTC coverage: 80.511% (-0.06%) from 80.571%
21057388274

Pull #2800

github

moko-poi
refactor(utils/node): remove Get prefix from getter functions

Remove "Get" prefix from getter functions in pkg/utils/node to follow
Effective Go and Kubernetes API conventions.

Effective Go states:
"Go doesn't provide automatic support for getters and setters. There's
nothing wrong with providing getters and setters yourself, and it's
often appropriate to do so, but it's neither idiomatic nor necessary
to put Get into the getter's name."

Changes:
- GetPods → Pods
- GetNodeClaims → NodeClaims
- GetCondition → Condition
- GetCurrentlyReschedulablePods → CurrentlyReschedulablePods
- GetProvisionablePods → ProvisionablePods
- GetVolumeAttachments → VolumeAttachments

Updated all usages across 13 files including controllers, state
management, and test utilities.

Ref: https://go.dev/doc/effective_go#Getters
Ref: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md
Pull Request #2800: refactor(utils/node): Remove Get prefix from getter functions to follow Go conventions

20 of 21 new or added lines in 9 files covered. (95.24%)

9 existing lines in 2 files now uncovered.

11976 of 14875 relevant lines covered (80.51%)

70818.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
72.19
0.0% pkg/controllers/node/health/controller.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
66.18
-2.94% pkg/controllers/state/informer/pricing.go
7
88.76
-7.87% pkg/controllers/provisioning/scheduling/preferences.go
Jobs
ID Job ID Ran Files Coverage
1 21057388274.1 16 Jan 2026 06:19AM UTC 153
80.51
GitHub Action Run
Source Files on build 21057388274
  • Tree
  • List 153
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2800
  • PR Base - main (#21011765273)
  • Delete
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